Ashish Kumar created HDDS-14416:
-----------------------------------

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


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

Reply via email to