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

EC: No error message for unsetting EC policy of the directory inherits the erasure coding policy from an ancestor directory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0
    • 3.2.0, 3.1.4
    • erasure-coding
    • None
    • 3 Node SUSE Linux cluster

    • Incompatible change, Reviewed
    • After this change, attempt to unsetErasureCodingPolicy() on a directory without EC policy explicitly set on it, will get NoECPolicySetException.

    Description

      No error message thrown for unsetting EC policy of the directory inherits the erasure coding policy from an ancestor directory

      Steps :-

      --------------

      • Create a Directory
      • Set EC policy for the Directory
      • Create a file in-side that Directory
      • Create a sub-directory inside the parent directory
      • Check both the file and sub-directory inherit the EC policy from parent directory
      • Try to unset EC Policy for the file and check it will throw error as [ Cannot unset an erasure coding policy on a file]
      • Try to unset EC Policy for the sub-directory and check it will throw a success message as [Unset erasure coding policy from <path>]
        instead of throwing the error message,which is wrong behavior

      Actual output :-

      No proper error message thrown for unsetting EC policy of the directory inherits the erasure coding policy from an ancestor directory
      A success message is displayed instead of throwing an error message

      Expected output :-

      Proper error message should be thrown while trying to unset EC policy of the directory inherits the erasure coding policy from an ancestor directory
      like error message thrown while unsetting the EC policy of a file inherits the erasure coding policy from an ancestor directory

      Attachments

        1. HDFS-13806-01.patch
          6 kB
          Ayush Saxena
        2. HDFS-13806-02.patch
          7 kB
          Ayush Saxena
        3. HDFS-13806-03.patch
          7 kB
          Ayush Saxena
        4. HDFS-13806-04.patch
          7 kB
          Ayush Saxena
        5. HDFS-13806-05.patch
          8 kB
          Ayush Saxena
        6. HDFS-13806-06.patch
          10 kB
          Ayush Saxena
        7. No_error_unset_ec_policy.png
          38 kB
          Souryakanta Dwivedy

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: