()
| 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 | /** |
nothing calls this directly
no test coverage detected