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

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

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