kerneltime commented on code in PR #5149:
URL: https://github.com/apache/ozone/pull/5149#discussion_r1294092702


##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/statemachine/background/BlockDeletingService.java:
##########
@@ -622,15 +659,30 @@ private DeleteTransactionStats deleteTransactions(
             }
           }
         }
+        deletedBlocksTxs.add(entry);
+        Duration execTime = Duration.between(startTime, Instant.now());
+        if (deletedBlocksTxs.size() < delBlocks.size() &&
+            execTime.compareTo(getBlockDeletingMaxLockHoldingTime()) > 0) {
+          LOG.info("Max lock hold time ({} ms) reached after {} ms. " +
+                  "Completed {} transactions, deleted {} blocks." +
+                  "Releasing lock and resuming deletion later.",
+              getBlockDeletingMaxLockHoldingTime().toMillis(),

Review Comment:
   Log the container information as well.



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