flink-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLINK-2605) Unclosed RandomAccessFile may leak resource in StaticFileServerHandler
Date Wed, 02 Sep 2015 00:44:46 GMT
Ted Yu created FLINK-2605:
-----------------------------

             Summary: 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


{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)

Mime
View raw message