[ 
https://issues.apache.org/jira/browse/HDFS-12581?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mukul Kumar Singh reassigned HDFS-12581:
----------------------------------------

    Assignee: Lokesh Jain  (was: Mukul Kumar Singh)

> ViewFileSystem#getAllStoragePolicies aggregates storage policies across NN 
> using policyid 
> ------------------------------------------------------------------------------------------
>
>                 Key: HDFS-12581
>                 URL: https://issues.apache.org/jira/browse/HDFS-12581
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs
>            Reporter: Mukul Kumar Singh
>            Assignee: Lokesh Jain
>            Priority: Major
>
> This jira was identified from review comments for HDFS-11968.
> ViewFileSystem#getAllStoragePolicies aggregates storage policies across NN 
> using policyid,
> However in a certain cluster,across nodes these storage policies can have 
> different meaning.
> {code}
>   @Override
>   public Collection<? extends BlockStoragePolicySpi> getAllStoragePolicies()
>       throws IOException {
>     Collection<BlockStoragePolicySpi> allPolicies = new HashSet<>();
>     for (FileSystem fs : getChildFileSystems()) {
>       try {
>         Collection<? extends BlockStoragePolicySpi> policies =
>             fs.getAllStoragePolicies();
>         allPolicies.addAll(policies);
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to