You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "sodonnel (via GitHub)" <gi...@apache.org> on 2023/08/22 14:31:49 UTC
[GitHub] [ozone] sodonnel opened a new pull request, #5209: HDDS-9197. EC: Mark EC containers unhealthy when not missing but unrecoverable
sodonnel opened a new pull request, #5209:
URL: https://github.com/apache/ozone/pull/5209
## What changes were proposed in this pull request?
An EC container should only be marked as unhealthy if:
1) Is not missing (has at least dataNum replica indexs online)
2) Has at least dataNum Healthy indexes online.
For a 3-2 container, this means that:
Healthy, Healthy -> This is missing
Unhealthy, Unhealthy -> This is missing as it doesn't matter that the replicas are unhealthy, as we could not read it anyway as we need at least 3 replicas.
Healthy, Healthy, Unhealthy (indexes 1, 2, 3) -> This is unhealthy as technically much of the data can still be read, but it is the unhealthy container which is causing the problem and making it unrecoverable.
Healthy, Healthy, Healthy, Unhealthy -> This is under replicated, as we can recover using the 3 healthy.
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-9197
## How was this patch tested?
Some tests modified and new tests added.
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] siddhantsangwan merged pull request #5209: HDDS-9197. EC: Mark EC containers unhealthy when not missing but unrecoverable
Posted by "siddhantsangwan (via GitHub)" <gi...@apache.org>.
siddhantsangwan merged PR #5209:
URL: https://github.com/apache/ozone/pull/5209
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] siddhantsangwan commented on a diff in pull request #5209: HDDS-9197. EC: Mark EC containers unhealthy when not missing but unrecoverable
Posted by "siddhantsangwan (via GitHub)" <gi...@apache.org>.
siddhantsangwan commented on code in PR #5209:
URL: https://github.com/apache/ozone/pull/5209#discussion_r1303019687
##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/replication/ECContainerReplicaCount.java:
##########
@@ -127,6 +128,9 @@ public ECContainerReplicaCount(ContainerInfo containerInfo,
3 is not considered over replicated because its second copy is unhealthy.
*/
if (replica.getState() == ContainerReplicaProto.State.UNHEALTHY) {
+ int val = decommissionIndexes
+ .getOrDefault(replica.getReplicaIndex(), 0);
+ unHealthyIndexes.put(replica.getReplicaIndex(), val + 1);
Review Comment:
Don't understand this part. Did you mean to get from the `unHealthyIndexes` map?
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] siddhantsangwan commented on a diff in pull request #5209: HDDS-9197. EC: Mark EC containers unhealthy when not missing but unrecoverable
Posted by "siddhantsangwan (via GitHub)" <gi...@apache.org>.
siddhantsangwan commented on code in PR #5209:
URL: https://github.com/apache/ozone/pull/5209#discussion_r1303080954
##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/replication/health/ClosedWithUnhealthyReplicasHandler.java:
##########
@@ -105,11 +105,11 @@ public boolean handle(ContainerCheckRequest request) {
}
}
- // some unhealthy replicas were found so mark UNHEALTHY (note that
- // UNHEALTHY is currently not a LifeCycleState for a Container)
+ // some unhealthy replicas were found so the container must be over
+ // over replicated due to unhealthy replicas.
if (foundUnhealthy) {
request.getReport().incrementAndSample(
- ReplicationManagerReport.HealthState.UNHEALTHY,
+ ReplicationManagerReport.HealthState.OVER_REPLICATED,
Review Comment:
Since we're marking excess UNHEALTHY as over replicated, let's also change the documentation above (line 65) that we're reporting excess unhealthy this way.
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org