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/01/05 08:00:00 UTC
[jira] [Assigned] (HDDS-7696) MisReplicationHandler does not consider QUASI_CLOSED replicas as sources
[ https://issues.apache.org/jira/browse/HDDS-7696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Siddhant Sangwan reassigned HDDS-7696:
--------------------------------------
Assignee: Stephen O'Donnell
> MisReplicationHandler does not consider QUASI_CLOSED replicas as sources
> ------------------------------------------------------------------------
>
> Key: HDDS-7696
> URL: https://issues.apache.org/jira/browse/HDDS-7696
> Project: Apache Ozone
> Issue Type: Sub-task
> Components: ECOfflineRecovery, SCM
> Affects Versions: 1.3.0
> Reporter: Siddhant Sangwan
> Assignee: Stephen O'Donnell
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.4.0
>
>
> MisReplicationHandler#filterSources gets a Set of replicas that can be used to fix mis replication. It selects CLOSED replicas:
> {code}
> private Set<ContainerReplica> filterSources(Set<ContainerReplica> replicas) {
> return replicas.stream().filter(r -> r
> .getState() == StorageContainerDatanodeProtocolProtos
> .ContainerReplicaProto.State.CLOSED)
> .filter(r -> ReplicationManager
> .getNodeStatus(r.getDatanodeDetails(), nodeManager)
> .isHealthy())
> .filter(r -> r.getDatanodeDetails().getPersistedOpState()
> == HddsProtos.NodeOperationalState.IN_SERVICE)
> .collect(Collectors.toSet());
> }
> {code}
> When thinking about Ratis Containers, QUASI_CLOSED replicas can also be mis replicated. They're also allowed to be replicated to datanodes. Should they also be considered as sources here?
--
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