Mukul Kumar Singh created HDFS-12581:
----------------------------------------

             Summary: 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: Mukul Kumar Singh


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
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-h...@hadoop.apache.org

Reply via email to