siddhantsangwan opened a new pull request, #8364:
URL: https://github.com/apache/ozone/pull/8364

   ## What changes were proposed in this pull request?
   
   Ozone Datanode caches the used space of a volume in-memory and updates this 
cached value on:
   1. Write chunk
   2. Block Delete
   3. Container Import
   
   However we're not yet updating the cached value on container delete. This 
pull request adds code to do that in `KeyValueHandler`. The existing method 
`StorageVolume#decrementUsedSpace` is used to decrement the cached value.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-12925
   
   ## How was this patch tested?
   
   Added a unit test to `TestKeyValueHandler.java.`
   
   The PR is ready for review, just marked as draft while CI is ongoing in my 
fork - 
https://github.com/siddhantsangwan/ozone/actions/runs/14749188298/job/41402942445


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to