HDDS-14416. Handle delete ratis replica in DELETED/DELETING container scenario.#9630
HDDS-14416. Handle delete ratis replica in DELETED/DELETING container scenario.#9630ashishkumar50 merged 11 commits intoapache:masterfrom
Conversation
|
@ashishkumar50 thanks for the patch! |
|
It seems the three test methods (testDeletedContainerWithStaleClosedReplicaRatis, testDeletedContainerWithLowerBcsidStaleReplicaRatis, and testDeletedECContainerWithStaleClosedReplicaShouldNotForceDelete) share duplicated code for creating ContainerReportHandler, building ContainerReportsProto, sending messages via reportHandler.onMessage(), and verifying DeleteContainerCommand. Could we try to extract a helper method like sendReportAndVerifyDeleteCommand() or something that handles the common setup and verification logic? |
priyeshkaratha
left a comment
There was a problem hiding this comment.
Thanks @ashishkumar50 for working on this. Changes LGTM
Extracted common code. |
|
@ashishkr200 thanks for the update! |
|
@errose28 @sumitagrawl, Can you please help to review this PR. |
What changes were proposed in this pull request?
When container state is DELETED/DELETING in SCM, and if any DN reports replica which is CLOSED and non-empty. And if replica bcs-id is less or equal to container sequence id, in this case SCM should trigger delete replica to DN. This will reduce orphan containers in the cluster.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-14416
How was this patch tested?
Unit tests