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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0
    • 3.2.0, 3.1.2
    • erasure-coding
    • None
    • 3 Node Linux Cluster

    • 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

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

            Dates

              Created:
              Updated:
              Resolved: