You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (JIRA)" <ji...@apache.org> on 2017/08/07 09:07:00 UTC

[jira] [Assigned] (SPARK-21621) Reset numRecordsWritten after DiskBlockObjectWriter.commitAndGet called

     [ https://issues.apache.org/jira/browse/SPARK-21621?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wenchen Fan reassigned SPARK-21621:
-----------------------------------

    Assignee: Xianyang Liu

> Reset numRecordsWritten after DiskBlockObjectWriter.commitAndGet called
> -----------------------------------------------------------------------
>
>                 Key: SPARK-21621
>                 URL: https://issues.apache.org/jira/browse/SPARK-21621
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 2.2.0
>            Reporter: Xianyang Liu
>            Assignee: Xianyang Liu
>             Fix For: 2.2.1, 2.3.0
>
>
> 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. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org