You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Mukul Kumar Singh (JIRA)" <ji...@apache.org> on 2018/03/01 03:56:00 UTC

[jira] [Assigned] (HDFS-12581) ViewFileSystem#getAllStoragePolicies aggregates storage policies across NN using policyid

     [ 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: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org