Skip to content

Commit 23d2f26

Browse files
committed
[SPARK-6980] Fixed await result not being handled by RpcTimeout
1 parent 49f9f04 commit 23d2f26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/org/apache/spark/rpc/RpcEnv.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ private[spark] abstract class RpcEnv(conf: SparkConf) {
9797
* Retrieve the [[RpcEndpointRef]] represented by `uri`. This is a blocking action.
9898
*/
9999
def setupEndpointRefByURI(uri: String): RpcEndpointRef = {
100-
Await.result(asyncSetupEndpointRefByURI(uri), defaultLookupTimeout.duration)
100+
defaultLookupTimeout.awaitResult(asyncSetupEndpointRefByURI(uri))
101101
}
102102

103103
/**

0 commit comments

Comments
 (0)