aswinshakil commented on code in PR #9015:
URL: https://github.com/apache/ozone/pull/9015#discussion_r2338284295


##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/statemachine/background/BlockDeletingTask.java:
##########
@@ -192,29 +196,29 @@ public ContainerBackgroundTaskResult deleteViaSchema1(
         return crr;
       }
 
-      List<Long> succeedBlockIDs = new LinkedList<>();
-      List<String> succeedBlockDBKeys = new LinkedList<>();
+      // Maps the key in the DB to the block metadata for blocks that were 
successfully deleted.
+      Map<String, BlockData> succeedDeletedBlocks = new HashMap<>();
       LOG.debug("{}, toDeleteBlocks: {}", containerData, 
toDeleteBlocks.size());
 
       Handler handler = Objects.requireNonNull(ozoneContainer.getDispatcher()
           .getHandler(container.getContainerType()));
 
       long releasedBytes = 0;
+      ContainerMerkleTreeWriter treeWriter = new ContainerMerkleTreeWriter();

Review Comment:
   This can be removed. It is not used. 



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to