[
https://issues.apache.org/jira/browse/HDFS-16031?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HDFS-16031:
----------------------------------
Labels: pull-request-available (was: )
> 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
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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: [email protected]
For additional commands, e-mail: [email protected]