Skip to content

Commit

Permalink
Once driver register successfully, stop it to connect to master.
Browse files Browse the repository at this point in the history
This commit is to resolve SPARK-12396.

Author: echo2mei <534384876@qq.com>

Closes #10354 from echoTomei/master.

(cherry picked from commit 5a514b6)
Signed-off-by: Davies Liu <davies.liu@gmail.com>
  • Loading branch information
echoTomei authored and davies committed Dec 17, 2015
1 parent d509194 commit da7542f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ private[spark] class AppClient(
if (registered.get) {
registerMasterFutures.get.foreach(_.cancel(true))
registerMasterThreadPool.shutdownNow()
registrationRetryTimer.cancel(true)
} else if (nthRetry >= REGISTRATION_RETRIES) {
markDead("All masters are unresponsive! Giving up.")
} else {
Expand Down

0 comments on commit da7542f

Please sign in to comment.