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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.1, 3.0.3
    • 3.2.0, 3.0.4, 3.1.2
    • httpfs
    • 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.003.patch
          4 kB
          Siyao Meng
        2. HDFS-13886.002.patch
          3 kB
          Siyao Meng
        3. HDFS-13886.001.patch
          3 kB
          Siyao Meng

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: