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 "Narges Shadab (Jira)" <ji...@apache.org> on 2021/03/23 21:09:00 UTC
[jira] [Created] (HDFS-15914) Possible Resource Leak in
org.apache.hadoop.hdfs.server.common.blockaliasmap.impl.TextFileRegionAliasMap
Narges Shadab created HDFS-15914:
------------------------------------
Summary: Possible Resource Leak in org.apache.hadoop.hdfs.server.common.blockaliasmap.impl.TextFileRegionAliasMap
Key: HDFS-15914
URL: https://issues.apache.org/jira/browse/HDFS-15914
Project: Hadoop HDFS
Issue Type: Bug
Reporter: Narges Shadab
We noticed a possible resource leak [here|https://github.com/apache/hadoop/blob/174f3a96b10a0ab0fd8aed1b0f904ca5f0c3f268/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/common/blockaliasmap/impl/TextFileRegionAliasMap.java#L370]. {{createInputStream}} might throw an {{IOException}} and if it occurs, {{i}} remains open since the exception isn't caught locally, and there is no way for any caller to close the FSDataInputStream that is returned by {{fs.open(file)}} at line 371.
I'll submit a pull request to fix it.
--
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