keith-turner commented on code in PR #4247:
URL: https://github.com/apache/accumulo/pull/4247#discussion_r1489899516


##########
server/manager/src/main/java/org/apache/accumulo/manager/tableOps/bulkVer2/CleanUpBulkImport.java:
##########
@@ -108,13 +108,12 @@ private static void removeBulkLoadEntries(Ample ample, 
TableId tableId, FateId f
           var tabletsMutator = ample.conditionallyMutateTablets()) {
 
         for (var tablet : tablets) {
-          // ELASTICITY_TODO DEFERRED - ISSUE 4044
-          if (tablet.getLoaded().values().stream().anyMatch(l -> l == 
fateId.getTid())) {
+          if (tablet.getLoaded().values().stream()
+              .anyMatch(loadedFateId -> loadedFateId.equals(fateId))) {
             var tabletMutator =
                 
tabletsMutator.mutateTablet(tablet.getExtent()).requireAbsentOperation();
-            tablet.getLoaded().entrySet().stream()
-                .filter(entry -> entry.getValue() == 
fateId.getTid()).map(Map.Entry::getKey)
-                .forEach(tabletMutator::deleteBulkFile);
+            tablet.getLoaded().entrySet().stream().filter(entry -> 
entry.getValue().equals(fateId))

Review Comment:
   Thanks



-- 
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