Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-6172

Potentially unclosed RandomAccessFile in HistoryServerStaticFileServerHandler

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0
    • Component/s: JobManager
    • Labels:
      None

      Description

          try {
            raf = new RandomAccessFile(file, "r");
          } catch (FileNotFoundException e) {
            StaticFileServerHandler.sendError(ctx, NOT_FOUND);
            return;
          }
          long fileLength = raf.length();
      

      raf should be closed in all possible execution paths.

        Attachments

          Activity

            People

            • Assignee:
              Zentol Chesnay Schepler
              Reporter:
              yuzhihong@gmail.com Ted Yu
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: