Devesh Kumar Singh created HDDS-17961:
-----------------------------------------
Summary: Make SCM over-replication replica deletion storage-tier
aware
Key: HDDS-17961
URL: https://issues.apache.org/jira/browse/HDDS-17961
Project: Apache Ozone
Issue Type: Sub-task
Components: Ozone Datanode, SCM, SCM HA
Reporter: Devesh Kumar Singh
Assignee: Devesh Kumar Singh
Tier promotion (HDDS-17712) copies a replica to the intended tier (e.g.
DISK→SSD), which briefly makes the container over-replicated. The
over-replication handlers then trim it back. Today all four handlers —
RatisOverReplicationHandler, ECOverReplicationHandler,
QuasiClosedStuckOverReplicationHandler, AbstractOverReplicationHandler — are
tier-blind (zero StorageType/StorageTier references), so the trim can delete
the replica that promotion just created. That produces a copy/delete loop that
never converges.
Fix. Make over-replication replica deletion prefer removing the
non-intended-tier replica, keeping the existing origin, placement-policy,
operational-state and EC-index rules.
- RATIS / QuasiClosedStuck: among surplus replicas, delete a non-intended-tier
replica first.
- EC: deletion is per replica index (one replica kept per index). Apply the
tier preference within the same index — when an index has copies on different
tiers, delete the non-intended-tier copy. Do not change the per-index invariant.
Scope. This is the over-replication deletion side only. It is distinct from the
repair copy side (RATIS copy: HDDS-17536, merged; EC copy: HDDS-17592) and is
not yet built for either RATIS or EC. It is a precondition for HDDS-17712 and
does not depend on the intendedTier field design — it can be developed in
parallel.
Acceptance. Over-replication trim of a mixed-tier container removes the
non-intended-tier replica(s) and converges to all-intended-tier without a
copy/delete loop; EC keeps exactly one replica per index; tests cover RATIS and
EC (including an index with two tiers).
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]