ArafatKhan2198 commented on code in PR #12095:
URL: https://github.com/apache/ozone/pull/12095#discussion_r4706688212
##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/scm/ReconStorageContainerSyncHelper.java:
##########
@@ -308,6 +323,11 @@ private int reconcileToQuasiClosed(ContainerID containerID,
return 0;
}
+ private boolean hasClosedReplica(ContainerID containerID) throws
ContainerNotFoundException {
+ return containerManager.getContainerReplicas(containerID).stream()
+ .anyMatch(replica -> replica.getState() ==
ContainerReplicaProto.State.CLOSED);
Review Comment:
Thanks for catching it!
Reading the id was also necessary to differentiate between old stale and new
--
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]