MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / scannerException

Method scannerException

test/core/TestTsdbQuery.java:575–592  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

573 }
574
575 @Test
576 public void scannerException() throws Exception {
577 storeLongTimeSeriesSeconds(true, false);
578 final RuntimeException ex = new RuntimeException("Boo!");
579 storage.throwException(MockBase.stringToBytes(
580 "00000150E22700000001000001"), ex, true);
581
582 storage.dumpToSystemOut();
583 query.setStartTime(1356998400);
584 query.setEndTime(1357041600);
585 query.setTimeSeries(METRIC_STRING, tags, Aggregators.SUM, false);
586 try {
587 query.run();
588 fail("Expected a RuntimeException");
589 } catch (RuntimeException e) {
590 assertSame(ex, e);
591 }
592 }
593
594 @Test
595 public void needsSplittingReturnsFalseIfDisabled() {

Callers

nothing calls this directly

Calls 8

stringToBytesMethod · 0.95
throwExceptionMethod · 0.80
dumpToSystemOutMethod · 0.80
setStartTimeMethod · 0.65
setEndTimeMethod · 0.65
setTimeSeriesMethod · 0.65
runMethod · 0.65

Tested by

no test coverage detected