You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by ib...@apache.org on 2022/08/17 15:59:16 UTC

[accumulo] 03/07: formatting (#2789)

This is an automated email from the ASF dual-hosted git repository.

ibella pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git

commit 434e68ad918fe7d904797269da90478d07b104b3
Author: Bill Oley <bi...@gmail.com>
AuthorDate: Wed Jun 29 13:36:06 2022 -0400

    formatting (#2789)
---
 .../src/main/java/org/apache/accumulo/tserver/scan/LookupTask.java | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/server/tserver/src/main/java/org/apache/accumulo/tserver/scan/LookupTask.java b/server/tserver/src/main/java/org/apache/accumulo/tserver/scan/LookupTask.java
index d53463a67c..05e12d419a 100644
--- a/server/tserver/src/main/java/org/apache/accumulo/tserver/scan/LookupTask.java
+++ b/server/tserver/src/main/java/org/apache/accumulo/tserver/scan/LookupTask.java
@@ -81,8 +81,9 @@ public class LookupTask extends ScanTask<MultiScanResult> {
       long maxScanTime = 4000;
 
       long startTime = System.currentTimeMillis();
-      LinkedList<Pair<KeyExtent, List<Range>>> queryQueue = new LinkedList<>();
-      session.queries.entrySet().forEach(e -> queryQueue.addLast(new Pair<>(e.getKey(), e.getValue())));
+      LinkedList<Pair<KeyExtent,List<Range>>> queryQueue = new LinkedList<>();
+      session.queries.entrySet()
+          .forEach(e -> queryQueue.addLast(new Pair<>(e.getKey(), e.getValue())));
 
       List<KVEntry> results = new ArrayList<>();
       Map<KeyExtent,List<Range>> failures = new HashMap<>();
@@ -94,7 +95,7 @@ public class LookupTask extends ScanTask<MultiScanResult> {
       // check the time so that the read ahead thread is not monopolized
       while (!queryQueue.isEmpty() && bytesAdded < maxResultsSize
           && (System.currentTimeMillis() - startTime) < maxScanTime) {
-        Pair<KeyExtent, List<Range>> extentRangePair = queryQueue.removeFirst();
+        Pair<KeyExtent,List<Range>> extentRangePair = queryQueue.removeFirst();
         KeyExtent extent = extentRangePair.getFirst();
         List<Range> ranges = extentRangePair.getSecond();