You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (Jira)" <ji...@apache.org> on 2020/05/05 19:44:00 UTC

[jira] [Updated] (SPARK-31645) Improve ExecutorMonitor shuffle-tracking to handle speculative tasks properly

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

Dongjoon Hyun updated SPARK-31645:
----------------------------------
    Description: 
- [https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/scheduler/dynalloc/ExecutorMonitor.scala#L293-L305]

 
{code:java}
// If the task succeeded and the stage generates shuffle data, record that this executor
// holds data for the shuffle. This code will track all executors that generate shuffle
// for the stage, even if speculative tasks generate duplicate shuffle data and end up
// being ignored by the map output tracker.
//
// This means that an executor may be marked as having shuffle data, and thus prevented
// from being removed, even though the data may not be used.
if (shuffleTrackingEnabled && event.reason == Success) {
  stageToShuffleID.get(event.stageId).foreach { shuffleId =>
    exec.addShuffle(shuffleId)
  }
}
{code}

  was:
- https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/scheduler/dynalloc/ExecutorMonitor.scala#L293-L305

 
{code:java}
      // If the task succeeded and the stage generates shuffle data, record that this executor
      // holds data for the shuffle. This code will track all executors that generate shuffle
      // for the stage, even if speculative tasks generate duplicate shuffle data and end up
      // being ignored by the map output tracker.
      //
      // This means that an executor may be marked as having shuffle data, and thus prevented
      // from being removed, even though the data may not be used.
      if (shuffleTrackingEnabled && event.reason == Success) {
        stageToShuffleID.get(event.stageId).foreach { shuffleId =>
          exec.addShuffle(shuffleId)
        }
      }
{code}


> Improve ExecutorMonitor shuffle-tracking to handle speculative tasks properly
> -----------------------------------------------------------------------------
>
>                 Key: SPARK-31645
>                 URL: https://issues.apache.org/jira/browse/SPARK-31645
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 3.1.0
>            Reporter: Dongjoon Hyun
>            Priority: Major
>
> - [https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/scheduler/dynalloc/ExecutorMonitor.scala#L293-L305]
>  
> {code:java}
> // If the task succeeded and the stage generates shuffle data, record that this executor
> // holds data for the shuffle. This code will track all executors that generate shuffle
> // for the stage, even if speculative tasks generate duplicate shuffle data and end up
> // being ignored by the map output tracker.
> //
> // This means that an executor may be marked as having shuffle data, and thus prevented
> // from being removed, even though the data may not be used.
> if (shuffleTrackingEnabled && event.reason == Success) {
>   stageToShuffleID.get(event.stageId).foreach { shuffleId =>
>     exec.addShuffle(shuffleId)
>   }
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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