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

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

according to the comment directly above the try block the RAF is closed 
automatically by netty.

> Potentially unclosed RandomAccessFile in HistoryServerStaticFileServerHandler
> -----------------------------------------------------------------------------
>
>                 Key: FLINK-6172
>                 URL: https://issues.apache.org/jira/browse/FLINK-6172
>             Project: Flink
>          Issue Type: Bug
>            Reporter: Ted Yu
>            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)

Reply via email to