ChenSammi commented on code in PR #10489:
URL: https://github.com/apache/ozone/pull/10489#discussion_r3400418767


##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/diskbalancer/DiskBalancerService.java:
##########
@@ -887,4 +892,14 @@ private static void pauseInjector() {
   public void setReplicaDeletionDelay(long durationMills) {
     this.replicaDeletionDelay = durationMills;
   }
+
+  public int getPendingDeletionQueueSize() {
+    return pendingDeletionContainers.values().stream()
+        .mapToInt(Queue::size)
+        .sum();
+  }
+
+  public void drainPendingDeletionsForTest() {

Review Comment:
   We can make cleanupPendingDeletionContainers public and with 
@VisibleForTesting.
   
   
   Thanks @Gargi-jais11 , overall looks good to me. 



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