Skip to content

Commit

Permalink
[SPARK-6980] Fixed await result not being handled by RpcTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanCutler committed May 18, 2015
1 parent 49f9f04 commit 23d2f26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/org/apache/spark/rpc/RpcEnv.scala
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ private[spark] abstract class RpcEnv(conf: SparkConf) {
* Retrieve the [[RpcEndpointRef]] represented by `uri`. This is a blocking action.
*/
def setupEndpointRefByURI(uri: String): RpcEndpointRef = {
Await.result(asyncSetupEndpointRefByURI(uri), defaultLookupTimeout.duration)
defaultLookupTimeout.awaitResult(asyncSetupEndpointRefByURI(uri))
}

/**
Expand Down

0 comments on commit 23d2f26

Please sign in to comment.