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

Method fetchSmallBatch

test/core/TestMultiGetQuery.java:740–753  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

738 }
739
740 @Test
741 public void fetchSmallBatch() throws Exception {
742 setupStorage();
743 config.overrideConfig("tsd.query.multi_get.batch_size", "16");
744
745 MultiGetQuery mgq = new MultiGetQuery(tsdb, query, METRIC_BYTES, q_tags,
746 start_ts, end_ts, tsdb.dataTable(), spans, null, 0, null, query_stats,
747 0, max_bytes, false, multiget_no_meta);
748
749 final SortedMap<byte[], Span> results = mgq.fetch().join();
750 assertSame(spans, results);
751 verify(client, times(4)).get(anyList());
752 validateSpans();
753 }
754
755 @Test
756 public void fetchSmallBatchAndSmallConcurrent() throws Exception {

Callers

nothing calls this directly

Calls 6

setupStorageMethod · 0.95
fetchMethod · 0.95
validateSpansMethod · 0.95
dataTableMethod · 0.80
overrideConfigMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected