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

Method scanTooManyBytes

test/core/TestSaltScanner.java:433–448  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

431 }
432
433 @Test
434 public void scanTooManyBytes() throws Exception {
435 setupMockScanners(false);
436 List<TagVFilter> filters = new ArrayList<TagVFilter>(1);
437 filters.add(new TagVWildcardFilter(TAGK_STRING, "web*"));
438
439 final SaltScanner scanner = new SaltScanner(tsdb, METRIC_BYTES, scanners,
440 spans, null, false, null, null, 0, null, 2, 0);
441 try {
442 scanner.scan().joinUninterruptibly();
443 fail("Excpected a QueryException");
444 } catch (QueryException e) {
445 assertEquals(HttpResponseStatus.REQUEST_ENTITY_TOO_LARGE, e.getStatus());
446 }
447 config.overrideConfig("tsd.core.scanner.max_bytes", "0");
448 }
449
450
451 /**

Callers

nothing calls this directly

Calls 5

setupMockScannersMethod · 0.95
scanMethod · 0.95
getStatusMethod · 0.65
addMethod · 0.45
overrideConfigMethod · 0.45

Tested by

no test coverage detected