Skip to content
Snippets Groups Projects
Commit 5a514b61 authored by echo2mei's avatar echo2mei Committed by Davies Liu
Browse files

Once driver register successfully, stop it to connect to master.

This commit is to resolve SPARK-12396.

Author: echo2mei <534384876@qq.com>

Closes #10354 from echoTomei/master.
parent 9d66c421
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment