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

On Windows, in testFailingSortingDataSinkTask the temp file is not removed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.0.0
    • Runtime / Coordination
    • None
    • Windows 7 64-bit, JDK 8u51

    Description

      The test fails with the assert at the very end ("Temp output file has not been removed"). This happens because FileOutputFormat.tryCleanupOnError can't delete the file, because it is still open (note, that Linux happily deletes open files).

      A fix would be to have the this.format.close(); not just in the finally block (in DataSinkTask.invoke), but also before the tryCleanupOnError call (around line 217).

      Attachments

        Issue Links

          Activity

            People

              ggevay Gábor Gévay
              ggevay Gábor Gévay
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: