Skip to content

Commit

Permalink
Fixed unused var issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dlmarion committed Feb 5, 2025
1 parent f924517 commit 27faf49
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ static void freeServerMemory(AccumuloClient client) throws Exception {
try (Scanner scanner = client.createScanner(AccumuloTable.METADATA.tableName())) {
IteratorSetting is = new IteratorSetting(11, MemoryFreeingIterator.class, Map.of());
scanner.addScanIterator(is);
Iterables.size(scanner); // consume the key/values
var unused = Iterables.size(scanner); // consume the key/values
}
}

Expand Down Expand Up @@ -389,7 +389,7 @@ public void testBatchScanPauses() throws Exception {
// MemoryConsumingIterator on the server side and call seek on it as it
// has the readahead threshold set. We can confirm that this is the case
// by looking at the metrics after the call.
memoryConsumingScanner.iterator();
var unused = memoryConsumingScanner.iterator();
waitFor(() -> 1 == LOW_MEM_DETECTED.get());

// Grab the current paused count, the number of rows fetched by the memoryConsumingScanner
Expand Down

0 comments on commit 27faf49

Please sign in to comment.