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

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

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.3
    • 3.0.4
    • hdfs, httpfs
    • None

    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment