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

Potentially unclosed RandomAccessFile in HistoryServerStaticFileServerHandler

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.3.0
    • Runtime / Coordination
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: