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

HttpFSFileSystem.getFileStatus() doesn't return "snapshot enabled" bit

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.1, 3.0.3
    • Fix Version/s: 3.2.0, 3.0.4, 3.1.2
    • Component/s: httpfs
    • Labels:
      None

      Description

      FSOperations.toJsonInner() doesn't check the "snapshot enabled" bit. Therefore, "fs.getFileStatus(path).isSnapshotEnabled()" will always return false for fs type HttpFSFileSystem/WebHdfsFileSystem/SWebhdfsFileSystem. Additional tests in BaseTestHttpFSWith will be added to prevent this from happening.

        Attachments

        1. HDFS-13886.001.patch
          3 kB
          Siyao Meng
        2. HDFS-13886.002.patch
          3 kB
          Siyao Meng
        3. HDFS-13886.003.patch
          4 kB
          Siyao Meng

          Issue Links

            Activity

              People

              • Assignee:
                smeng Siyao Meng
                Reporter:
                smeng Siyao Meng
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: