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

WebHdfs getFileStatus doesn't return ecPolicy

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0, 3.1.1
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Currently LISTSTATUS call to WebHdfs returns a json. These jsonArray elements do have the ecPolicy name.
      But when WebHdfsFileSystem converts it back into a FileStatus object, the ecPolicy is not added. This is because the json contains only the ecPolicy name and this name is not sufficient to decode it back to ErasureCodingPolicy object.
      While converting json back to HdfsFileStatus we should set ecPolicyName whenever it is set for give file/dir.

        Attachments

        1. HDFS-13512.05.patch
          8 kB
          Ajay Kumar
        2. HDFS-13512.04.patch
          7 kB
          Ajay Kumar
        3. HDFS-13512.03.patch
          7 kB
          Ajay Kumar
        4. HDFS-13512.02.patch
          7 kB
          Ajay Kumar
        5. HDFS-13512.01.patch
          11 kB
          Ajay Kumar
        6. HDFS-13512.00.patch
          10 kB
          Ajay Kumar

          Activity

            People

            • Assignee:
              ajayydv Ajay Kumar
              Reporter:
              ajayydv Ajay Kumar
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: