Skip to content

Commit 7636189

Browse files
committed
[SPARK-6980] Fixed call to askWithReply in DAGScheduler to use RpcTimeout - this was being compiled by auto-tupling and changing the message type of BlockManagerHeartbeat
1 parent be11c4e commit 7636189

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/main/scala/org/apache/spark/scheduler/DAGScheduler.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import org.apache.spark.broadcast.Broadcast
3535
import org.apache.spark.executor.TaskMetrics
3636
import org.apache.spark.partial.{ApproximateActionListener, ApproximateEvaluator, PartialResult}
3737
import org.apache.spark.rdd.RDD
38+
import org.apache.spark.rpc.RpcTimeout
3839
import org.apache.spark.storage._
3940
import org.apache.spark.unsafe.memory.TaskMemoryManager
4041
import org.apache.spark.util._
@@ -186,7 +187,7 @@ class DAGScheduler(
186187
blockManagerId: BlockManagerId): Boolean = {
187188
listenerBus.post(SparkListenerExecutorMetricsUpdate(execId, taskMetrics))
188189
blockManagerMaster.driverEndpoint.askWithRetry[Boolean](
189-
BlockManagerHeartbeat(blockManagerId), 600 seconds)
190+
BlockManagerHeartbeat(blockManagerId), new RpcTimeout(600 seconds, "BlockManagerHeartbeat"))
190191
}
191192

192193
// Called by TaskScheduler when an executor fails.

0 commit comments

Comments
 (0)