Skip to content

Commit

Permalink
[SPARK-6980] Using RpcTimeout.awaitResult for future in AppClient now
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanCutler committed May 16, 2015
1 parent 97523e0 commit 78a2c0a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,7 @@ private[spark] class AppClient(
try {
val timeout = RpcUtils.askTimeout(conf)
val future = actor.ask(StopAppClient)(timeout.duration)
// TODO(bryanc) - RpcTimeout use awaitResult ???
Await.result(future, timeout.duration)
timeout.awaitResult(future)
} catch {
case e: TimeoutException =>
logInfo("Stop request to Master timed out; it may already be shut down.")
Expand Down

0 comments on commit 78a2c0a

Please sign in to comment.