adoroszlai commented on code in PR #5620:
URL: https://github.com/apache/ozone/pull/5620#discussion_r1398715333


##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/recon/TestReconTasks.java:
##########
@@ -147,6 +153,12 @@ public void testMissingContainerDownNode() throws 
Exception {
         scmContainerManager
             .allocateContainer(RatisReplicationConfig.getInstance(ONE), 
"test");
     long containerID = containerInfo.getContainerID();
+
+    RDBBatchOperation rdbBatchOperation = new RDBBatchOperation();
+    reconContainerMetadataManager
+        .batchStoreContainerKeyCounts(rdbBatchOperation, containerID, 2L);
+    reconContainerMetadataManager.commitBatchOperation(rdbBatchOperation);

Review Comment:
   ```suggestion
       try (RDBBatchOperation rdbBatchOperation = new RDBBatchOperation()) {
         reconContainerMetadataManager
             .batchStoreContainerKeyCounts(rdbBatchOperation, containerID, 2L);
         reconContainerMetadataManager.commitBatchOperation(rdbBatchOperation);
       }
   ```



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