ruanwenjun commented on issue #16942:
URL:
https://github.com/apache/dolphinscheduler/issues/16942#issuecomment-2579298030
> > Why this is a bug? What's the problem here? @reele
> > The failover failoverNodePath is unique for each master, we use
master's startup time as its id, once you stop a master and startup again, it's
failoverNodePath should be changed.
>
> @ruanwenjun
>
> Because if the master stop and startup again, it will do failover of
itself, after failover, the failoverNodePath was not changed, then it detected
the same failoverNodePath and goes to stop.
>
> Or maybe if a master do failover to itself, it should change or remove the
failoverNodePath?
If the master stop and startup again, the `failoverNodePath` will changed,
since the master startup time has changed.
And failoverNodePath contains the master startup time.
```java
public static String getFailoverFinishedNodePath(final String masterAddress,
final long masterStartupTime) {
return RegistryNodeType.FAILOVER_FINISH_NODES.getRegistryPath() +
"/" + masterAddress + "-" + masterStartupTime;
}
```
--
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]