hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mukul Kumar Singh (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-12581) ViewFileSystem#getAllStoragePolicies aggregates storage policies across NN using policyid
Date Tue, 03 Oct 2017 02:35:01 GMT
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-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message