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

Reset numRecordsWritten after DiskBlockObjectWriter.commitAndGet called

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.2.1, 2.3.0
    • Spark Core
    • None

    Description

      We should reset numRecordsWritten to zero after DiskBlockObjectWriter.commitAndGet called.
      Because when `revertPartialWritesAndClose` be called, we decrease the written records in `ShuffleWriteMetrics` . However, we decreased the written records to zero, this should be wrong, we should only decreased the number reords after the last `commitAndGet` called.

      Attachments

        Activity

          People

            coneyliu Xianyang Liu
            coneyliu Xianyang Liu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: