ArafatKhan2198 commented on PR #5037: URL: https://github.com/apache/ozone/pull/5037#issuecomment-1914054004
Initially, we attempted to implement the DU space calculation of **deleted directories** using `NSSummaries`. However, Sumit highlighted the difficulty in determining the total size of all deleted directories using our original approach. Currently, we iterate through the `DeletedDirectoryTable`, calculate the size of each deleted directory, and then find the sum total size. The issue arises when both the parent and child entries are encountered in the DeletedDirectoryTable, resulting in the same size being calculated twice. To address the challenge of calculating the size of deleted directories, especially when encountering both parent and child entries in the `DeletedDirectoryTable`, we are adjusting our approach. To obtain the count of deletePending directories and their corresponding data size, we can derive the data size from the keys of the deleted directories. These keys are already being calculated and are an integral part of the deleted directories. -- 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]
