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

Unclosed RandomAccessFile in StaticFileServerHandler#respondAsLeader()

    Details

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

      Description

          final RandomAccessFile raf;
          try {
            raf = new RandomAccessFile(file, "r");
      ...
          long fileLength = raf.length();
      

      The RandomAccessFile should be closed upon return from method.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: