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

EC: "removePolicy" is not working for built-in/system Erasure Code policies

    Details

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

      3 Node SUSE Linux Cluster

    • Hadoop Flags:
      Reviewed

      Description

      EC: "removePolicy" is not working for built-in/system Erasure Code policies

      • Check the existing built-in EC policies with command "hdfs ec -listPolicies"
      • try to remove any of the EC policies,it will throw error message as "RemoteException: System erasure coding policy RS-3-2-1024k cannot be removed"
      • add user-defined EC policies
      • Try to remove any user-defined policy,it will be removed successfully
      • But in help option it is specified as :
        vm1:/opt/client/install/hadoop/namenode/bin> ./hdfs ec -help removePolicy
        [-removePolicy -policy <policy>]

      Remove an erasure coding policy.
      <policy> The name of the erasure coding policy
      vm1:/opt/client/install/hadoop/namenode/bin>

      Actual result :-
      hdfs ec -removePolicy not working for built-in/system EC policies ,where as usage description
      provided as "Remove an erasure coding policy".throwing exception as : "RemoteException: System erasure coding policy RS-3-2-1024k cannot be removed"

      Expected output : Either EC "removePolicy" option should be applicable for all type of EC policies
      Or it has to be specified in usage that EC "removePolicy" will be applicable to remove
      only user-defined EC policies, not applicable for system EC coding policies.

        Attachments

        1. HDFS-13785-01.patch
          2 kB
          Ayush Saxena
        2. HDFS-13785-02.patch
          3 kB
          Ayush Saxena
        3. HDFS-13785-03.patch
          4 kB
          Ayush Saxena

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: