Repository: spark
Updated Branches:
  refs/heads/master 3ae37b93a -> ef3fb801a


[SPARK-6934][Core] Use 'spark.akka.askTimeout' for the ask timeout

Fixed my mistake in #4588

Author: zsxwing <zsxw...@gmail.com>

Closes #5529 from zsxwing/SPARK-6934 and squashes the following commits:

9890b2d [zsxwing] Use 'spark.akka.askTimeout' for the ask timeout


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/ef3fb801
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/ef3fb801
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/ef3fb801

Branch: refs/heads/master
Commit: ef3fb801ae971656ed9cd1b0ab95bc5a1548adbd
Parents: 3ae37b9
Author: zsxwing <zsxw...@gmail.com>
Authored: Thu Apr 16 13:45:55 2015 -0500
Committer: Reynold Xin <r...@databricks.com>
Committed: Thu Apr 16 13:45:55 2015 -0500

----------------------------------------------------------------------
 core/src/main/scala/org/apache/spark/rpc/RpcEnv.scala | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/ef3fb801/core/src/main/scala/org/apache/spark/rpc/RpcEnv.scala
----------------------------------------------------------------------
diff --git a/core/src/main/scala/org/apache/spark/rpc/RpcEnv.scala 
b/core/src/main/scala/org/apache/spark/rpc/RpcEnv.scala
index e259867..f2c1c86 100644
--- a/core/src/main/scala/org/apache/spark/rpc/RpcEnv.scala
+++ b/core/src/main/scala/org/apache/spark/rpc/RpcEnv.scala
@@ -284,7 +284,7 @@ private[spark] abstract class RpcEndpointRef(@transient 
conf: SparkConf)
 
   private[this] val maxRetries = conf.getInt("spark.akka.num.retries", 3)
   private[this] val retryWaitMs = conf.getLong("spark.akka.retry.wait", 3000)
-  private[this] val defaultTimeout = conf.getLong("spark.akka.lookupTimeout", 
30) seconds
+  private[this] val defaultAskTimeout = conf.getLong("spark.akka.askTimeout", 
30) seconds
 
   /**
    * return the address for the [[RpcEndpointRef]]
@@ -304,7 +304,8 @@ private[spark] abstract class RpcEndpointRef(@transient 
conf: SparkConf)
    *
    * This method only sends the message once and never retries.
    */
-  def sendWithReply[T: ClassTag](message: Any): Future[T] = 
sendWithReply(message, defaultTimeout)
+  def sendWithReply[T: ClassTag](message: Any): Future[T] =
+    sendWithReply(message, defaultAskTimeout)
 
   /**
    * Send a message to the corresponding [[RpcEndpoint.receiveAndReply)]] and 
return a `Future` to
@@ -327,7 +328,7 @@ private[spark] abstract class RpcEndpointRef(@transient 
conf: SparkConf)
    * @tparam T type of the reply message
    * @return the reply message from the corresponding [[RpcEndpoint]]
    */
-  def askWithReply[T: ClassTag](message: Any): T = askWithReply(message, 
defaultTimeout)
+  def askWithReply[T: ClassTag](message: Any): T = askWithReply(message, 
defaultAskTimeout)
 
   /**
    * Send a message to the corresponding [[RpcEndpoint.receive]] and get its 
result within a


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to