Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-33384

Delete temporary file when cancelling writing to final path even underlying stream throwing error

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.1.0
    • 3.1.0
    • Structured Streaming
    • None

    Description

      In RenameBasedFSDataOutputStream.cancel, we do two things: closing underlying stream and delete temporary file, in a single try/catch block. Closing OutputStream could possibly throw IOException so we possibly missing deleting temporary file.

      Attachments

        Activity

          People

            viirya L. C. Hsieh
            viirya L. C. Hsieh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: