You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2026/01/13 14:28:00 UTC

[jira] [Updated] (HDDS-14416) Disk Space Not Fully Reclaimed After Key Deletion

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

ASF GitHub Bot updated HDDS-14416:
----------------------------------
    Labels: pull-request-available  (was: )

> Disk Space Not Fully Reclaimed After Key Deletion
> -------------------------------------------------
>
>                 Key: HDDS-14416
>                 URL: https://issues.apache.org/jira/browse/HDDS-14416
>             Project: Apache Ozone
>          Issue Type: Bug
>            Reporter: Ashish Kumar
>            Assignee: Ashish Kumar
>            Priority: Major
>              Labels: pull-request-available
>
> *Scenario:* When any particular DN is down for long time. During this period RM replicates data from down DN to some other DNs.
> If data deletion happens during this period, deletion happens only from available DN. And also if container becomes empty, container gets deleted.
> If DN that were previously down were brought back online. This DN starts reporting replicas to SCM. 
> Due to a recent [change|https://issues.apache.org/jira/browse/HDDS-12421], SCM accepts replica reports for containers that were already in the DELETED state. As a result, containers previously marked as DELETED were transitioned back to the CLOSED state.
> Replication Manager then treated these containers as valid and replicated them to other DataNodes.
> This results in orphan containers and causing extra space utilization.
> In case of Ratis, to minimize orphan containers we can safely delete replica in first case from the below table.
> ||Container State(SCM)||Replica State (DN)||Replica BCSID vs Container BCSID||Action (SCM)||
> |DELETED|CLOSED|Replica BCSID <= Container BCSID|Delete Replica|
> |DELETED|CLOSED|Replica BCSID > Container BCSID|Do Not Delete Replica, keep current behaviour|
> |DELETED|State other than CLOSED|Replica BCSID <= Container BCSID|Do Not Delete Replica, keep current behaviour|
> |DELETED|State other than CLOSED|Replica BCSID > Container BCSID|Do Not Delete Replica, keep current behaviour|
>  



--
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