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

   ## What changes were proposed in this pull request?
   Currently KeyDeletingService and SnapshotDirectoryCleaningService updates 
the same exclusive size variable which would lead to a wrong calculation of 
exclusive size. Thus both of these should be tracked in separate variables and 
the total exclusive size of the snapshot should be the total of 
exclusiveDeletedKeySize + exclusiveDeletedDirSize.
   This also enables us to update multiple snapshot properties together making 
some operations atomic leading to a consistent behaviour. Both 
SnapshotDirectoryCleaningService & KeyDeletingService updates exclusive size of 
previous snapshot and deep cleaning flag of next snapshot separately whereas 
this needs to be performed within a single transaction.
   
   ## What is the link to the Apache JIRA
   Existing test case.
   
   ## How was this patch tested?
   Fixing Existing unit tests


-- 
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: issues-unsubscr...@ozone.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org
For additional commands, e-mail: issues-h...@ozone.apache.org

Reply via email to