Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-7494

File stream leak when LineRecordReader is interrupted

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.4.0, 3.3.6, 3.4.1
    • 3.5.0
    • client

    Description

      In LineRecordReader, we may open a filestream:
      ```
      fileIn = FutureIO.awaitFuture(builder.build());
      ```
      However, we may be interrupted or otherwise throw an error before `in` is initialized, for example here:
      ```
      fileIn.seek(start);
      ```
      If this happens, the caller has no way to close this file stream causing it to leak.

      Attachments

        Activity

          People

            dtjong Davin Tjong
            dtjong Davin Tjong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: