Skip to content

HDDS-15110. Fix negative container size handling in replication#10126

Draft
ptlrs wants to merge 3 commits intoapache:masterfrom
ptlrs:HDDS-15110-Improve-container-size-calculation
Draft

HDDS-15110. Fix negative container size handling in replication#10126
ptlrs wants to merge 3 commits intoapache:masterfrom
ptlrs:HDDS-15110-Improve-container-size-calculation

Conversation

@ptlrs
Copy link
Copy Markdown
Contributor

@ptlrs ptlrs commented Apr 24, 2026

What changes were proposed in this pull request?

The container size is currently calculated by subtracting the deleted bytes from the existing bytes. We need to add safeguards to ensure that the calculation never results in a negative value.

What is the link to the Apache JIRA

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

How was this patch tested?

CI: https://github.com/ptlrs/ozone/actions/runs/24913951609

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