You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Siddhant Sangwan (Jira)" <ji...@apache.org> on 2023/09/26 15:25:00 UTC

[jira] [Updated] (HDDS-9352) LegacyReplicationManager: Ignore any Datanodes that are not in-service and healthy when finding unique origins

     [ https://issues.apache.org/jira/browse/HDDS-9352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Siddhant Sangwan updated HDDS-9352:
-----------------------------------
    Summary: LegacyReplicationManager: Ignore any Datanodes that are not in-service and healthy when finding unique origins  (was: ReplicationManager: Ignore any Datanodes that are not in-service and healthy when finding unique origins)

> LegacyReplicationManager: Ignore any Datanodes that are not in-service and healthy when finding unique origins
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: HDDS-9352
>                 URL: https://issues.apache.org/jira/browse/HDDS-9352
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: SCM
>            Reporter: Siddhant Sangwan
>            Assignee: Siddhant Sangwan
>            Priority: Major
>
> RM needs to save UNHEALTHY replicas that have unique Origin IDs when deleting excess UNHEALTHY replicas of a QUASI_CLOSED container. This is because replicas with unique origins are used to decide whether such a container can be closed. If we can close UNHEALTHY replicas in the future, these replicas can be used to make this decision.
> Currently, RM considers all replicas in the algorithm for finding out which replicas need to be saved and which should be deleted:
> {code}
>     // Gather the origin node IDs of replicas which are not candidates for
>     // deletion.
>     Set<UUID> existingOriginNodeIDs = allReplicas.stream()
>         .filter(r -> !deleteCandidates.contains(r))
>         .map(ContainerReplica::getOriginDatanodeId)
>         .collect(Collectors.toSet());
> {code}
> We need to remove any DNs that are not in-service and healthy because it's likely we've already lost them or will lose them in the future.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org