[
https://issues.apache.org/jira/browse/FLINK-6172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15937299#comment-15937299
]
Ted Yu commented on FLINK-6172:
-------------------------------
Similar problem exists in StaticFileServerHandler.java
> 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)