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

Close the output stream if createWrappedOutputStream() fails

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

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: encryption
    • Labels:
      None

      Description

      create() in an encryption zone is a two step process by the client. First, a regular FSOutputStream is created and then it is wrapped with an encrypted stream. When there is a system issue or a KMS ACL-based denial, the second phase will fail. If the client terminates right away, the shutdown hook closes the output stream opened in the first phase. But if the client lives on, the output stream will leak.

      Datanode's WebHdfsHandler, DFSClient, DistributedFileSystem, Hdfs (FileContext) and RpcProgramNfs3 do this.

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kihwal Kihwal Lee

              Dates

              • Created:
                Updated:

                Issue deployment