ruanwenjun commented on issue #16942:
URL:
https://github.com/apache/dolphinscheduler/issues/16942#issuecomment-2579628665
I got you, this could happen, since the global master failover event time
might equals with master startup time.
```
public void initialized() {
ServerLifeCycleManager.toRunning();
final long startupTime = System.currentTimeMillis();
....
this.systemEventBus.publish(GlobalMasterFailoverEvent.of(new
Date(startupTime)));
}
```
The `failoverFinishedNodePath` is used to avoid duplicate failover one
master and avoid the master still running once it has been failovered.
We need to change the `failoverFinishedNodePath` to `
/{masterAddress-masterStartupTime-masterId`, for global master failover the
masterId is unknown, then this problem should be fixed. We can use uuid as the
master's id.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]