sadanand48 commented on PR #9708:
URL: https://github.com/apache/ozone/pull/9708#issuecomment-3912510074
@jojochuang @smengcl FYI.
For recursive deletes in FSO buckets, pendingDeleteBytes /
snapshotUsedBytes are not updated when the directory is deleted. They are
updated only when DirectoryDeletingService moves subfiles into the deleted
table via PurgeDirectoriesRequest (handled by
OMDirectoriesPurgeRequestWithFSO), which calls decrUsedBytes(..., true) and
increments snapshotUsedBytes.
I think this should be okay as even today the updates to usedBytes and
usedNamespace happens in the same way.
Exposing snapshotUsedBytes might still be useful when snapshot lifespan is
significant, as it helps users understand quota usage and why space is not
reclaimed after deletes.
--
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]