spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reynold Xin (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-5069) Race condition in TaskSchedulerImpl.dagScheduler
Date Mon, 05 Jan 2015 05:06:34 GMT

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

Reynold Xin resolved SPARK-5069.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 1.3.0
         Assignee: Shixiong Zhu

> Race condition in TaskSchedulerImpl.dagScheduler
> ------------------------------------------------
>
>                 Key: SPARK-5069
>                 URL: https://issues.apache.org/jira/browse/SPARK-5069
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>            Reporter: Shixiong Zhu
>            Assignee: Shixiong Zhu
>            Priority: Minor
>             Fix For: 1.3.0
>
>
> `TaskSchedulerImpl.dagScheduler` is set in DAGSchedulerEventProcessActor.preStart. But
Akka doesn't guarantee which thread `Actor.preStart` will run in. Usually it will run in a
different thread, without proper protection, `TaskSchedulerImpl.dagScheduler` may be null
when it's used. The following test failure demonstrates it.
> {noformat}
> [info] - Scheduler does not always schedule tasks on the same workers *** FAILED ***
(37 milliseconds)
> [info]   java.lang.NullPointerException:
> [info]   at org.apache.spark.scheduler.TaskSchedulerImpl.executorAdded(TaskSchedulerImpl.scala:459)
> [info]   at org.apache.spark.scheduler.TaskSchedulerImpl$$anonfun$resourceOffers$1.apply(TaskSchedulerImpl.scala:226)
> [info]   at org.apache.spark.scheduler.TaskSchedulerImpl$$anonfun$resourceOffers$1.apply(TaskSchedulerImpl.scala:221)
> [info]   at scala.collection.immutable.List.foreach(List.scala:318)
> [info]   at org.apache.spark.scheduler.TaskSchedulerImpl.resourceOffers(TaskSchedulerImpl.scala:221)
> [info]   at org.apache.spark.scheduler.TaskSchedulerImplSuite$$anonfun$4$$anonfun$6.apply(TaskSchedulerImplSuite.scala:287)
> [info]   at org.apache.spark.scheduler.TaskSchedulerImplSuite$$anonfun$4$$anonfun$6.apply(TaskSchedulerImplSuite.scala:284)
> [info]   at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
> [info]   at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
> [info]   at scala.collection.immutable.Range.foreach(Range.scala:141)
> [info]   at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message