kaijchen commented on a change in pull request #3206:
URL: https://github.com/apache/ozone/pull/3206#discussion_r831818328



##########
File path: 
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/response/key/OMOpenKeysDeleteResponse.java
##########
@@ -67,9 +72,15 @@ public void addToDBBatch(OMMetadataManager omMetadataManager,
     Table<String, OmKeyInfo> openKeyTable =
         omMetadataManager.getOpenKeyTable(getBucketLayout());
 
-    for (Map.Entry<String, OmKeyInfo> keyInfoPair: keysToDelete.entrySet()) {
+    for (Map.Entry<String, OmKeyInfo> keyInfoPair : keysToDelete.entrySet()) {
       addDeletionToBatch(omMetadataManager, batchOperation, openKeyTable,
           keyInfoPair.getKey(), keyInfoPair.getValue());
     }
+
+    for (Map.Entry<String, OmBucketInfo> bucketInfoPair
+        : bucketsToUpdate.entrySet()) {
+      omMetadataManager.getBucketTable().putWithBatch(batchOperation,

Review comment:
       Thanks for pointing out. I have created HDDS-6480 to fix this (and all 
other occurences, hopefully).




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