[ https://issues.apache.org/jira/browse/FLINK-2605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14729116#comment-14729116 ]
ASF GitHub Bot commented on FLINK-2605: --------------------------------------- GitHub user tedyu opened a pull request: https://github.com/apache/flink/pull/1089 FLINK-2605 Unclosed RandomAccessFile may leak resource in StaticFileS… …erverHandler You can merge this pull request into a Git repository by running: $ git pull https://github.com/tedyu/flink master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/flink/pull/1089.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1089 ---- commit d900be453f9ebac68bcf7e4c75b8d80d0fa8b2c5 Author: tedyu <yuzhih...@gmail.com> Date: 2015-09-03T14:11:32Z FLINK-2605 Unclosed RandomAccessFile may leak resource in StaticFileServerHandler ---- > Unclosed RandomAccessFile may leak resource in StaticFileServerHandler > ---------------------------------------------------------------------- > > Key: FLINK-2605 > URL: https://issues.apache.org/jira/browse/FLINK-2605 > Project: Flink > Issue Type: Bug > Reporter: Ted Yu > 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)