priyeshkaratha opened a new pull request, #9127: URL: https://github.com/apache/ozone/pull/9127
## What changes were proposed in this pull request? This pull request adds replicated size to Recon’s namespace summary (NSSummary). It helps show the actual storage used, including data replication, along with the existing unreplicated size. **What’s changed:** * Added a new field `replicatedSizeOfFiles` to NSSummary. * Updated Recon logic to calculate, store, and show this new size correctly. * Added an upgrade step to fill this field for existing data during upgrades. **Main code updates:** * **NSSummaryTaskDbEventHandler.java:** Now tracks and updates `replicatedSizeOfFiles` when files or folders are added or deleted. * **OMDBInsightEndpoint.java:** Shows both unreplicated and replicated sizes for deleted directories. * **FSOBucketHandler.java and LegacyBucketHander.java** Simplified to use the new `replicatedSizeOfFiles` value. * Added a new layout version (**ReconLayoutFeature.REPLICATED_SIZE_OF_FILES, version 4**) and an upgrade action (**ReplicatedSizeOfFilesUpgradeAction.java**) to rebuild the summary tree and populate the new field. ## What is the link to the Apache JIRA HDDS-13758 ## How was this patch tested? The changes are covered by extensive unit and integration 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: [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]
