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

InputStream not closed in BinaryInputFormat#createStatistics

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.0.0
    • None
    • None

    Description

      Here is related code:

            FSDataInputStream fdis = file.getPath().getFileSystem().open(file.getPath(), blockInfo.getInfoSize());
            fdis.seek(file.getLen() - blockInfo.getInfoSize());
      
            blockInfo.read(new DataInputViewStreamWrapper(fdis));
            totalCount += blockInfo.getAccumulatedRecordCount();
      

      fdis / wrapper should be closed upon leaving the method

      Attachments

        Activity

          People

            Unassigned Unassigned
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: