milleruntime commented on a change in pull request #2214:
URL: https://github.com/apache/accumulo/pull/2214#discussion_r677513684



##########
File path: 
server/gc/src/test/java/org/apache/accumulo/gc/GarbageCollectionTest.java
##########
@@ -51,13 +58,29 @@
     TreeMap<String,Status> filesToReplicate = new TreeMap<>();
 
     @Override
-    public boolean getCandidates(String continuePoint, List<String> ret) {
-      Iterator<String> iter = candidates.tailSet(continuePoint, 
false).iterator();
-      while (iter.hasNext() && ret.size() < 3) {
-        ret.add(iter.next());
+    public void processCandidates() throws TableNotFoundException, IOException 
{
+
+      Iterator<String> candidatesIter = candidates.iterator();
+
+      while (candidatesIter.hasNext()) {
+        List<String> candidatesBatch = 
readCandidatesThatFitInMemory(candidatesIter);
+        new GarbageCollectionAlgorithm().collectBatch(this, candidatesBatch);
       }
+      // Remove all candidates that were tagged for deletion now that the 
processing of
+      // candidates is complete for this round. This was removed from the 
'delete' method
+      // due to that causing a ConcurrentModificationException. T

Review comment:
       White space maybe? I know the fastbuild checks if you built before 
pushing. Did you build locally after committing the suggestions? I almost 
always have to due to imports or formatting.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to