jmark99 commented on a change in pull request #2214:
URL: https://github.com/apache/accumulo/pull/2214#discussion_r677499641
##########
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:
Any idea why making the two type changes you suggested causes the
fastbuild to fail with a formatting error?
--
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]