You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Chesnay Schepler (JIRA)" <ji...@apache.org> on 2017/04/06 07:20:41 UTC

[jira] [Commented] (FLINK-6172) Potentially unclosed RandomAccessFile in HistoryServerStaticFileServerHandler

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

Chesnay Schepler commented on FLINK-6172:
-----------------------------------------

PR: https://github.com/apache/flink/pull/3678

> Potentially unclosed RandomAccessFile in HistoryServerStaticFileServerHandler
> -----------------------------------------------------------------------------
>
>                 Key: FLINK-6172
>                 URL: https://issues.apache.org/jira/browse/FLINK-6172
>             Project: Flink
>          Issue Type: Bug
>          Components: JobManager
>            Reporter: Ted Yu
>            Assignee: Chesnay Schepler
>            Priority: Minor
>
> {code}
>     try {
>       raf = new RandomAccessFile(file, "r");
>     } catch (FileNotFoundException e) {
>       StaticFileServerHandler.sendError(ctx, NOT_FOUND);
>       return;
>     }
>     long fileLength = raf.length();
> {code}
> raf should be closed in all possible execution paths.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)