yuangu002 opened a new pull request #2489: URL: https://github.com/apache/ozone/pull/2489
## What changes were proposed in this pull request? In addition to actual key size, Recon 'du' should also return the replicated size of a key. For example, for a 3 way replicated key of size = 1MB, Recon 'du' should return '1MB' as the size of the key, and '3MB' as the replicated size if the key is fully replicated. [Refactoring] 1. DU response now shows a "structure" 2. DU key response shouldn't have subpaths ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-5449 ## How was this patch tested? Since this is an improvement/refactoring feature on top of HDDS-5378, no additional unit test is implemented. I tested remotely on the cluster endpoint with the following configs:  All keys are three-way replicated except `key3` [Root DU] http://localhost:9888/api/v1/namespace/du?path=/&replica=true  [Volume DU] http://localhost:9888/api/v1/namespace/du?path=/vol&replica=true  [Bucket DU] `&files=true` enabled http://localhost:9888/api/v1/namespace/du?path=/vol/bucket&files=true&replica=true  [Directory DU] `&files=true` enabled http://localhost:9888/api/v1/namespace/du?path=/vol/bucket/dir1&files=true&replica=true  (Key3 is one-way replicated.) [Nested Directory DU] http://localhost:9888/api/v1/namespace/du?path=/vol/bucket/dir1/dir2&files=true&replica=true  [Key DU] http://localhost:9888/api/v1/namespace/du?path=/vol/bucket/dir1/dir2/dir3/key6&files=true&replica=true  -- 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]
