F64116045 commented on code in PR #12048:
URL: https://github.com/apache/ozone/pull/12048#discussion_r4711833460
##########
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:
An EC container can be missing too many fragments to recover while still
having fragments on the decommissioning DN. The [EC
check](https://github.com/apache/ozone/blob/9a78fdaf26f45d05e27170af88d72bb37026d7e4/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/replication/health/ECReplicationCheckHandler.java#L64-L71)
reports `MISSING_UNDER_REPLICATED` when those fragments still need copying.
Its comment also says decommission should wait for those copies.
So I keep this in the helper.
--
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]