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

   ## What changes were proposed in this pull request?
   
   Recon reports the aggregated subtree size as `sizeDirectKey`. For example, a 
bucket with a 500-byte direct key and 11,268 bytes in subdirectories reports 
11,768 direct-key bytes. Directory usage has the same problem.
   
   Subtract immediate subdirectory totals from the parent total to calculate 
direct-key size, using summaries already loaded by the API. Preserve total and 
replicated sizes. Extend the existing FSO and Legacy API tests to cover mixed 
contents, a bucket containing only subdirectories, and directory-level usage.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-17680
   
   ## How was this patch tested?
   
   - Direct-key size regressions failed before the fix for FSO and Legacy 
buckets and directories.
   - Full `TestNSSummaryEndpoint` suite with JDK 21: 126 tests, zero 
failures/errors, 34 layout-specific skips.
   - `hadoop-ozone/dev-support/checks/checkstyle.sh`: passed with zero 
violations.
   
   Generated-by: Codex (GPT-6)
   


-- 
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]

Reply via email to