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/15 17:53:41 UTC
[jira] [Closed] (FLINK-6172) Potentially unclosed RandomAccessFile
in HistoryServerStaticFileServerHandler
[ https://issues.apache.org/jira/browse/FLINK-6172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chesnay Schepler closed FLINK-6172.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.3.0
1.3: be26f7ed1e2b97bc2e6ab06d6267f8d542d78aee
> 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
> Fix For: 1.3.0
>
>
> {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)