cloud-fan commented on a change in pull request #24569: [SPARK-23191][CORE]
Warn rather than terminate when duplicate worker register happens
URL: https://github.com/apache/spark/pull/24569#discussion_r283868326
##########
File path: core/src/main/scala/org/apache/spark/deploy/worker/Worker.scala
##########
@@ -485,8 +493,13 @@ private[deploy] class Worker(
masterRef.send(WorkerSchedulerStateResponse(workerId, execs.toList,
drivers.keys.toSeq))
case ReconnectWorker(masterUrl) =>
- logInfo(s"Master with url $masterUrl requested this worker to
reconnect.")
- registerWithMaster()
+ if (masterUrl != activeMasterUrl) {
Review comment:
The thing I want to avoid is, the worker ignores the `ReconnectWorker`
message from the actual active master.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]