Skip to content

HDDS-14772. Delete EC replica when container state is already DELETED.#9872

Open
ashishkumar50 wants to merge 3 commits intoapache:masterfrom
ashishkumar50:HDDS-14772
Open

HDDS-14772. Delete EC replica when container state is already DELETED.#9872
ashishkumar50 wants to merge 3 commits intoapache:masterfrom
ashishkumar50:HDDS-14772

Conversation

@ashishkumar50
Copy link
Contributor

What changes were proposed in this pull request?

When an EC container is already DELETED, and if any replica reports to SCM after that SCM can delete that replica. This will reduce orphan EC replica present in the system.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-14772

How was this patch tested?

Update existing test

@sodonnel
Copy link
Contributor

sodonnel commented Mar 6, 2026

This change makes sense, as if all other replicas of an EC container are deleted, retaining a lagging deleted one cannot help for dataloss scenarios like with a Ratis container.

Is there a unit test that covers checking the delete command is actually sent? From the test changes in the PR I was not sure if it is covered or not.

@ashishkumar50
Copy link
Contributor Author

This change makes sense, as if all other replicas of an EC container are deleted, retaining a lagging deleted one cannot help for dataloss scenarios like with a Ratis container.

Is there a unit test that covers checking the delete command is actually sent? From the test changes in the PR I was not sure if it is covered or not.

Added a new test to cover this.

Copy link
Contributor

@sodonnel sodonnel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants