[ 
https://issues.apache.org/jira/browse/HDDS-15110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18130493#comment-18130493
 ] 

Siyao Meng commented on HDDS-15110:
-----------------------------------

[Jira cleanup 2026-10-22] Resolving as Implemented. Container deletion 
statistics clamp negative sizes and counters.

Evidence:
* https://github.com/apache/ozone/pull/10126
* 
https://github.com/apache/ozone/commit/652bb192e58b797c1244c1aede57834759f25c98
* 
https://github.com/apache/ozone/blob/bf3829e6c8ac69ae17585585703f91426dcdf6b3/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/impl/ContainerData.java#L714

Feel free to reopen if further work is needed.

> Improve container size calculation 
> -----------------------------------
>
>                 Key: HDDS-15110
>                 URL: https://issues.apache.org/jira/browse/HDDS-15110
>             Project: Apache Ozone
>          Issue Type: Improvement
>            Reporter: Rishabh Patel
>            Assignee: Rishabh Patel
>            Priority: Major
>              Labels: pull-request-available
>
> 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. 



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to