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


##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/replication/ECContainerReplicaCount.java:
##########
@@ -521,6 +521,23 @@ public boolean isSufficientlyReplicated() {
     return isSufficientlyReplicated(false);
   }
 
+  @Override
+  public String toString() {
+    StringBuilder sb = new StringBuilder();
+    sb.append("Container State: ").append(containerInfo.getState())
+        .append(" Replica Count: ").append(replicas.size())
+        .append(" Healthy Count: ").append(healthyIndexes.size())
+        .append(" Unhealthy Count: ").append(unhealthyReplicaDNs.size())
+        .append(" Decommission Count: ").append(decommissionIndexes.size())
+        .append(" Maintenance Count: ").append(maintenanceIndexes.size())
+        .append(" inFlightAdd Count: ").append(pendingAdd.size())
+        .append(" inFightDel Count: ").append(pendingDelete.size())

Review Comment:
   ```suggestion
           .append(" inFlightDel Count: ").append(pendingDelete.size())
   ```



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