[
https://issues.apache.org/jira/browse/HDDS-14416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18053771#comment-18053771
]
Ivan Andika commented on HDDS-14416:
------------------------------------
I'm not sure whether this is exactly the same as HDDS-13928 , if so I can close
HDDS-13928
> 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
> Fix For: 2.2.0
>
>
> *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: [email protected]
For additional commands, e-mail: [email protected]