You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Kihwal Lee (Jira)" <ji...@apache.org> on 2019/10/04 16:40:00 UTC

[jira] [Created] (HDFS-14892) Close the output stream if createWrappedOutputStream() fails

Kihwal Lee created HDFS-14892:
---------------------------------

             Summary: Close the output stream if createWrappedOutputStream() fails
                 Key: HDFS-14892
                 URL: https://issues.apache.org/jira/browse/HDFS-14892
             Project: Hadoop HDFS
          Issue Type: Bug
            Reporter: Kihwal Lee


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.  




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org