spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <>
Subject [jira] [Commented] (SPARK-22162) Executors and the driver use inconsistent Job IDs during the new RDD commit protocol
Date Tue, 05 Dec 2017 00:10:00 GMT


Apache Spark commented on SPARK-22162:

User 'rezasafi' has created a pull request for this issue:

> Executors and the driver use inconsistent Job IDs during the new RDD commit protocol
> ------------------------------------------------------------------------------------
>                 Key: SPARK-22162
>                 URL:
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 2.2.0
>            Reporter: Reza Safi
>            Assignee: Reza Safi
>             Fix For: 2.3.0
> After SPARK-18191 commit in pull request 15769, using the new commit protocol it is possible
that driver and executors uses different jobIds during a rdd commit.
> In the old code, the variable stageId is part of the closure used to define the task
as you can see here:
>  []
> As a result, a TaskAttemptId is constructed in executors using the same "stageId" as
the driver, since it is a value that is serialized in the driver. Also the value of stageID
is actually the which is assigned here: []
> However, after the change in pull request 15769, the value is no longer part of the task
closure, which gets serialized by the driver. Instead, it is pulled from the taskContext as
you can see here:[]
> and then that value is used to construct the TaskAttemptId on the executors: []
> taskContext has a stageID value which will be set in DAGScheduler. So after the change
unlike the old code which a was used, an actual is used which can be different
between executors and the driver since it is no longer serialized.
> In summary, the old code consistently used rddId, and just incorrectly named it "stageId".
> The new code uses a mix of rddId and stageId. There should be a consistent ID between
executors and the drivers.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message