[ 
https://issues.apache.org/jira/browse/HDFS-16037?focusedWorklogId=601323&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-601323
 ]

ASF GitHub Bot logged work on HDFS-16037:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 24/May/21 18:23
            Start Date: 24/May/21 18:23
    Worklog Time Spent: 10m 
      Work Description: Nargeshdb opened a new pull request #3046:
URL: https://github.com/apache/hadoop/pull/3046


   This PR fixes the issue mentioned 
[here](https://issues.apache.org/jira/browse/HDFS-16037).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 601323)
    Remaining Estimate: 0h
            Time Spent: 10m

> Possible Resource Leak in 
> org.apache.hadoop.hdfs.tools.offlineImageViewer#FSImageLoader
> ---------------------------------------------------------------------------------------
>
>                 Key: HDFS-16037
>                 URL: https://issues.apache.org/jira/browse/HDFS-16037
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Narges Shadab
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> We notice a possible resource leak in line 
> [113|https://github.com/apache/hadoop/blob/59172ada9014f8c056f2bd37b25a26572ca643af/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/offlineImageViewer/FSImageLoader.java#L113].
>  {{file}} remains open if line 115 or 118 throws an IOException. We should 
> define {{fin}} and {{file}} in try-with-resources.
> 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-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to