Narges Shadab created HDFS-16031:
------------------------------------

             Summary: Possible Resource Leak in 
org.apache.hadoop.hdfs.server.aliasmap#InMemoryAliasMap
                 Key: HDFS-16031
                 URL: https://issues.apache.org/jira/browse/HDFS-16031
             Project: Hadoop HDFS
          Issue Type: Bug
            Reporter: Narges Shadab


We notice a possible resource leak in 
[getCompressedAliasMap|https://github.com/apache/hadoop/blob/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/aliasmap/InMemoryAliasMap.java#L320].
 If {{finish()}} at line 334 throws an IOException, then {{tOut, gzOut}} and 
{{bOut}} remain open since the exception isn't caught locally, and there is no 
way for any caller to close them.
I've submitted a pull request to fix it.

 



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

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

Reply via email to