Skip to content

HDDS-14684. Allow deletion of empty quasi-closed containers#9856

Open
sarvekshayr wants to merge 1 commit intoapache:masterfrom
sarvekshayr:HDDS-14684
Open

HDDS-14684. Allow deletion of empty quasi-closed containers#9856
sarvekshayr wants to merge 1 commit intoapache:masterfrom
sarvekshayr:HDDS-14684

Conversation

@sarvekshayr
Copy link
Contributor

What changes were proposed in this pull request?

We now support tracking a container again if a new replica shows up with a higher BCSID after all replicas were deleted HDDS-14684. With this change, we delete empty quasi-closed containers from the system. Even if they were missing some blocks and a new replica shows up with those blocks, it would be tracked and replicated again.
Added empty QUASI_CLOSED container check and deletion in EmptyContainerHandler.

What is the link to the Apache JIRA

HDDS-14684

How was this patch tested?

Added integration test in TestReplicationManagerIntegration#testEmptyQuasiClosedContainerDeletion.
Existing test TestContainerReportHandling#testDeletingOrDeletedContainerWhenNonEmptyReplicaIsReported already verifies the logic if non empty replica is reported.

@sarvekshayr sarvekshayr requested a review from sumitagrawl March 2, 2026 06:05
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.

1 participant