[
https://issues.apache.org/jira/browse/HDDS-17930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sravani Revuri reassigned HDDS-17930:
-------------------------------------
Assignee: Sravani Revuri
> EC bucket root and LEGACY directories do not report the bucket EC policy
> ------------------------------------------------------------------------
>
> Key: HDDS-17930
> URL: https://issues.apache.org/jira/browse/HDDS-17930
> Project: Apache Ozone
> Issue Type: Improvement
> Components: Ozone Filesystem
> Reporter: Chi-Hsuan Huang
> Assignee: Sravani Revuri
> Priority: Minor
>
> Follow-up to HDDS-15212, which makes {{getContentSummary}} of an EC bucket
> root report the bucket's EC policy on {{ofs://}} and {{o3fs://}}.
> Some paths in an EC bucket still do not report the bucket's EC policy,
> although keys written under them use the bucket's EC default replication.
> *LEGACY directories.* In an FSO bucket, OM fills a directory's replication
> config from the bucket default, so a directory reports the EC policy. In a
> LEGACY bucket it does not. For example, with a LEGACY EC bucket
> {{/vol1/ecbucket1}} and a directory {{dir1}} in it:
> * {{ozone fs -count -e /vol1/ecbucket1/}} prints the EC scheme, e.g.
> {{RS-3-2-1024k}}.
> * {{ozone fs -count -e /vol1/ecbucket1/dir1/}} prints an empty policy.
> * {{FileStatus.isErasureCoded()}} of {{dir1}} is false.
> *Bucket root FileStatus.* {{FileStatus.isErasureCoded()}} of the bucket root
> is false on both layouts, while the bucket entries of
> {{listStatus(volumePath)}} on ofs report true.
> HDFS reports the inherited policy for directories:
> {{ContentSummaryComputationContext#getErasureCodingPolicyName}} and
> {{FSDirErasureCodingOp#getErasureCodingPolicyForPath}} fall back to the
> parent's policy, and the directory's {{FileStatus}} is flagged as erasure
> coded.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]