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

Writing empty partition via DSv2 implementation of FileStreamSink throws FileNotFoundException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • SQL
    • None

    Description

      I've discovered this issue while playing with Spark 3.0.0-preview.

      Unlike DSv1 version of file sink, DSv2 version of file sink lazily creates output file which leads empty partition to not actually create output file. The behavior itself is not a problem, but while committing task in ManifestFileCommitProtocol, `fs.getFileStatus` throws FileNotFoundException since the file is not created.

       

      Attachments

        Activity

          People

            kabhwan Jungtaek Lim
            kabhwan Jungtaek Lim
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: