ddanielr commented on code in PR #3738:
URL: https://github.com/apache/accumulo/pull/3738#discussion_r1330458940
##########
server/gc/src/main/java/org/apache/accumulo/gc/GarbageCollectionAlgorithm.java:
##########
@@ -156,8 +159,10 @@ private void
removeCandidatesInUse(GarbageCollectionEnvironment gce,
dir = makeRelative(dir, 2);
- if (candidateMap.remove(dir) != null) {
+ GcCandidate gcTemp = candidateMap.remove(dir);
+ if (gcTemp != null) {
log.debug("Candidate was still in use: {}", dir);
+ inUseCandidates.add(gcTemp);
Review Comment:
Switched to list.
--
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]