Skip to content

Commit

Permalink
[SPARK-6980] Fixed call to askWithReply in DAGScheduler to use RpcTim…
Browse files Browse the repository at this point in the history
…eout - this was being compiled by auto-tupling and changing the message type of BlockManagerHeartbeat
  • Loading branch information
BryanCutler committed Jun 26, 2015
1 parent be11c4e commit 7636189
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import org.apache.spark.broadcast.Broadcast
import org.apache.spark.executor.TaskMetrics
import org.apache.spark.partial.{ApproximateActionListener, ApproximateEvaluator, PartialResult}
import org.apache.spark.rdd.RDD
import org.apache.spark.rpc.RpcTimeout
import org.apache.spark.storage._
import org.apache.spark.unsafe.memory.TaskMemoryManager
import org.apache.spark.util._
Expand Down Expand Up @@ -186,7 +187,7 @@ class DAGScheduler(
blockManagerId: BlockManagerId): Boolean = {
listenerBus.post(SparkListenerExecutorMetricsUpdate(execId, taskMetrics))
blockManagerMaster.driverEndpoint.askWithRetry[Boolean](
BlockManagerHeartbeat(blockManagerId), 600 seconds)
BlockManagerHeartbeat(blockManagerId), new RpcTimeout(600 seconds, "BlockManagerHeartbeat"))
}

// Called by TaskScheduler when an executor fails.
Expand Down

0 comments on commit 7636189

Please sign in to comment.