db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DERBY-5480) File handle leak in MessageVetter
Date Mon, 22 Jul 2013 23:36:49 GMT

    [ https://issues.apache.org/jira/browse/DERBY-5480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13715861#comment-13715861
] 

ASF subversion and git services commented on DERBY-5480:
--------------------------------------------------------

Commit 1505853 from [~mamtas] in branch 'code/branches/10'
[ https://svn.apache.org/r1505853 ]

DERBY-5480(File handle leak in MessageVetter)

Backporting to 10.8. Fix contributed by Knut
                
> File handle leak in MessageVetter
> ---------------------------------
>
>                 Key: DERBY-5480
>                 URL: https://issues.apache.org/jira/browse/DERBY-5480
>             Project: Derby
>          Issue Type: Bug
>          Components: Build tools
>    Affects Versions: 10.9.1.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Mamta A. Satoor
>            Priority: Minor
>             Fix For: 10.9.1.0
>
>         Attachments: d5480-1a.diff
>
>
> MessageVetter, which is executed by the build script, contains the following code to
load a message file:
>         properties.load(new FileInputStream(file));
> The FileInputStream isn't closed. Since MessageVetter runs embedded in the Ant process,
file handles may be held open and cause problems later in the build. MessageVetter goes through
more than 800 files, so the number of open file handles may be high when it has completed.
> Even though FileInputStream has a finalize() method that calls close(), so the streams
will be closed eventually, we should close the streams explicitly to release system resources
as early as possible.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message