sodonnel commented on code in PR #12048:
URL: https://github.com/apache/ozone/pull/12048#discussion_r4612440771
##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/node/DatanodeAdminMonitorImpl.java:
##########
@@ -442,7 +442,10 @@ private boolean
checkContainersReplicatedOnNode(TrackedNode dn)
ReplicationManagerReport report = new ReplicationManagerReport(
replicationManager.getConfig().getContainerSampleLimit());
replicationManager.checkContainerStatus(replicaSet.getContainer(),
report);
- boolean replicatedOK =
report.getStat(ContainerHealthState.UNDER_REPLICATED) == 0;
+ boolean replicatedOK =
report.getStat(ContainerHealthState.UNDER_REPLICATED) == 0
+ && report.getStat(ContainerHealthState.UNHEALTHY_UNDER_REPLICATED)
== 0
+ && report.getStat(ContainerHealthState.MISSING_UNDER_REPLICATED)
== 0
Review Comment:
missing should be a distinct state. If a container is missing it doesn't
have any replicas in the system - on the decommissioning node or anywhere, so
it should not block decommission. However I don't think it will as there will
be no instance of the container on the decommissioning node to block it.
--
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]