Ted Yu created FLINK-6172:
-----------------------------

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