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

   ## What changes were proposed in this pull request?
   
   On ofs and o3fs, `getContentSummary` of an EC bucket root reports an empty 
EC policy, so `ozone fs -count -e` and `ozone fs -ls -e` show no EC scheme for 
the bucket. OM has no key for the bucket root, so its file status carries no 
replication config.
   
   This PR takes the EC policy from the bucket's default replication config 
instead:
   - ofs: in `getContentSummary`, when the path is a bucket. This adds one 
InfoBucket call per bucket summary, keeping `getFileStatus` free of it 
(HDDS-15925).
   - o3fs: in the adapter's `getFileStatus` for the root, using the bucket it 
already caches, so no extra RPC.
   
   Generated-by: Claude Code (Claude Opus 5.5)
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-15212
   
   ## How was this patch tested?
   
   - New tests in `AbstractRootedOzoneFileSystemTest` and 
`AbstractOzoneFileSystemTest` check the bucket root summary of an EC bucket and 
a RATIS bucket. They fail without the fix.
   - CI: https://github.com/chihsuan/ozone/actions/runs/45622403748
   


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