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

Fix non-empty dir warning message when setting default EC policy

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.0, 3.0.3
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      When EC policy is set on a non-empty directory, the following warning message is given:

      $hdfs ec -setPolicy -policy RS-6-3-1024k -path /ec1
      Warning: setting erasure coding policy on a non-empty directory will not automatically convert existing files to RS-6-3-1024k
      

      When we do not specify the -policy parameter when setting EC policy on a directory, it takes the default EC policy. Setting default EC policy in this way on a non-empty directory gives the following warning message:

      $hdfs ec -setPolicy -path /ec2
      Warning: setting erasure coding policy on a non-empty directory will not automatically convert existing files to null
      

      Notice that the warning message in the 2nd case has the ecPolicy name shown as null. We should instead give the default EC policy name in this message.

        Attachments

        1. HDFS-13239.00.patch
          4 kB
          Bharat Viswanadham
        2. HDFS-13239.01.patch
          4 kB
          Bharat Viswanadham
        3. HDFS-13239.02.patch
          3 kB
          Bharat Viswanadham
        4. HDFS-13239.03.patch
          4 kB
          Bharat Viswanadham
        5. HDFS-13239.04.patch
          4 kB
          Bharat Viswanadham

          Activity

            People

            • Assignee:
              bharatviswa Bharat Viswanadham
              Reporter:
              hanishakoneru Hanisha Koneru
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: