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

HttpFS: FileStatus#setSnapShotEnabledFlag throws InvocationTargetException when attribute set is emptySet

    Details

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

      Description

      FileStatus#setSnapShotEnabledFlag throws InvocationTargetException when attribute set (attr) is Collections.emptySet().

      This happens when a FileStatus object is created with none of the four attributes flags (ACL, Encrypted, EC, Snapshot Enabled) and then FileStatus#setSnapShotEnabledFlag is called.

      Rationale for not adding additional tests: The exception is easily reproducible by running existing HttpFS test case TestHttpFSWithHttpFSFileSystem#testOperation[23] (ENCRYPTION). The test passes after the patch is applied.

      Note that FileStatus#setSnapShotEnabledFlag is already gone in trunk (by HDFS-12681).

        Attachments

          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: