You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by jo...@apache.org on 2015/11/20 22:17:44 UTC
spark git commit: [SPARK-11650] Reduce RPC timeouts to speed up slow
AkkaUtilsSuite test
Repository: spark
Updated Branches:
refs/heads/master 3b9d2a347 -> 652def318
[SPARK-11650] Reduce RPC timeouts to speed up slow AkkaUtilsSuite test
This patch reduces some RPC timeouts in order to speed up the slow "AkkaUtilsSuite.remote fetch ssl on - untrusted server", which used to take two minutes to run.
Author: Josh Rosen <jo...@databricks.com>
Closes #9869 from JoshRosen/SPARK-11650.
Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/652def31
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/652def31
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/652def31
Branch: refs/heads/master
Commit: 652def318e47890bd0a0977dc982cc07f99fb06a
Parents: 3b9d2a3
Author: Josh Rosen <jo...@databricks.com>
Authored: Fri Nov 20 13:17:35 2015 -0800
Committer: Josh Rosen <jo...@databricks.com>
Committed: Fri Nov 20 13:17:35 2015 -0800
----------------------------------------------------------------------
core/src/test/scala/org/apache/spark/util/AkkaUtilsSuite.scala | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/spark/blob/652def31/core/src/test/scala/org/apache/spark/util/AkkaUtilsSuite.scala
----------------------------------------------------------------------
diff --git a/core/src/test/scala/org/apache/spark/util/AkkaUtilsSuite.scala b/core/src/test/scala/org/apache/spark/util/AkkaUtilsSuite.scala
index 6160101..0af4b60 100644
--- a/core/src/test/scala/org/apache/spark/util/AkkaUtilsSuite.scala
+++ b/core/src/test/scala/org/apache/spark/util/AkkaUtilsSuite.scala
@@ -340,10 +340,11 @@ class AkkaUtilsSuite extends SparkFunSuite with LocalSparkContext with ResetSyst
new MapOutputTrackerMasterEndpoint(rpcEnv, masterTracker, conf))
val slaveConf = sparkSSLConfig()
+ .set("spark.rpc.askTimeout", "5s")
+ .set("spark.rpc.lookupTimeout", "5s")
val securityManagerBad = new SecurityManager(slaveConf)
val slaveRpcEnv = RpcEnv.create("spark-slave", hostname, 0, slaveConf, securityManagerBad)
- val slaveTracker = new MapOutputTrackerWorker(conf)
try {
slaveRpcEnv.setupEndpointRef("spark", rpcEnv.address, MapOutputTracker.ENDPOINT_NAME)
fail("should receive either ActorNotFound or TimeoutException")
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org