You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Chiwan Park (JIRA)" <ji...@apache.org> on 2015/09/05 09:21:45 UTC

[jira] [Resolved] (FLINK-2605) Unclosed RandomAccessFile may leak resource in StaticFileServerHandler

     [ https://issues.apache.org/jira/browse/FLINK-2605?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chiwan Park resolved FLINK-2605.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 0.10

Fixed at 4911462811309dd8b46574445b690a9cc38d2d87

Thanks for your contribution!

> Unclosed RandomAccessFile may leak resource in StaticFileServerHandler
> ----------------------------------------------------------------------
>
>                 Key: FLINK-2605
>                 URL: https://issues.apache.org/jira/browse/FLINK-2605
>             Project: Flink
>          Issue Type: Bug
>          Components: Webfrontend
>            Reporter: Ted Yu
>             Fix For: 0.10
>
>         Attachments: flink-2605-v1.txt
>
>
> {code}
>     final RandomAccessFile raf;
>     try {
>       raf = new RandomAccessFile(file, "r");
>     }
>     catch (FileNotFoundException e) {
>       sendError(ctx, NOT_FOUND);
>       return;
>     }
> {code}
> If there is exception after raf is created but before method returns, raf would be left unclosed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)