Skip to content

HDDS-15610. Fix deletedBlocks summary size corruption in SCM#10554

Open
priyeshkaratha wants to merge 1 commit into
apache:masterfrom
priyeshkaratha:HDDS-15610
Open

HDDS-15610. Fix deletedBlocks summary size corruption in SCM#10554
priyeshkaratha wants to merge 1 commit into
apache:masterfrom
priyeshkaratha:HDDS-15610

Conversation

@priyeshkaratha

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

During an SCM restart or a leader switch, the SCM defaults the summary value to 0. If a decrement operation happens on top of this unpersisted state, the value drops into the negative range.
If the summary value is 0 or less during initializeDataDistribution, the system will fallback to iterating over the deletedTable to accurately recalculate the distribution, instead of relying on the potentially corrupted/unpersisted summary.

What is the link to the Apache JIRA

HDDS-15610

How was this patch tested?

Tested using added unit test and integration test and validated in CI

@priyeshkaratha priyeshkaratha marked this pull request as ready for review June 20, 2026 01:26
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