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

WebHdfs getFileStatus doesn't return ecPolicy

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.2.0, 3.1.1
    • None
    • None
    • 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.00.patch
          10 kB
          Ajay Kumar
        2. HDFS-13512.01.patch
          11 kB
          Ajay Kumar
        3. HDFS-13512.02.patch
          7 kB
          Ajay Kumar
        4. HDFS-13512.03.patch
          7 kB
          Ajay Kumar
        5. HDFS-13512.04.patch
          7 kB
          Ajay Kumar
        6. HDFS-13512.05.patch
          8 kB
          Ajay Kumar

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: