Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-13774

EC: "hdfs ec -getPolicy" is not retrieving policy details when the special REPLICATION policy set on the directory

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.2.0, 3.1.2
    • Component/s: erasure-coding
    • Labels:
      None
    • Environment:

      3 Node Linux Cluster

    • Hadoop Flags:
      Reviewed

      Description

       Erasure coding: "hdfs ec -getPolicy"" is not retrieving policy details when the special REPLICATION policy set on the directory

      Steps :-

       - Create a directory "testEC"

      • Get the EC policy for the directory [Received message as : "The erasure coding policy of /testEC is unspecified" ]
      • Enable any Erasure coding policy like "XOR-2-1-1024k"
      • Set the EC Policy on the Directory
      • Get the EC policy for the directory [Received message as : "XOR-2-1-1024k" ]
      • Now again set the EC Policy on the directory as "replicate" special REPLICATION policy
      • Get the EC policy for the directory [Received message as : "The erasure coding policy of /testEC is unspecified" ]
        The policy is being set for the Directory ,but while retrieving policy details its throwing error as
        policy for the directory is unspecified which is wrong behavior

        Attachments

        1. GetPolicy_EC.png
          21 kB
          Souryakanta Dwivedy
        2. HDFS-13774-01.patch
          3 kB
          Ayush Saxena
        3. HDFS-13774-02.patch
          3 kB
          Ayush Saxena

          Activity

            People

            • Assignee:
              ayushtkn Ayush Saxena
              Reporter:
              SouryakantaDwivedy Souryakanta Dwivedy
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: