Browse Source

[Fix-13950][master] fix the key of master node failover (#13952)

Co-authored-by: eye <eye.gu@aloudata.com>
3.2.0-release
eye-gu 2 years ago committed by GitHub
parent
commit
1c836bf011
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/service/MasterFailoverService.java

2
dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/service/MasterFailoverService.java

@ -91,7 +91,7 @@ public class MasterFailoverService {
}
public void failoverMaster(String masterHost) {
String failoverPath = RegistryNodeType.MASTER_FAILOVER_LOCK + "/" + masterHost;
String failoverPath = RegistryNodeType.MASTER_FAILOVER_LOCK.getRegistryPath() + "/" + masterHost;
try {
registryClient.getLock(failoverPath);
doFailoverMaster(masterHost);

Loading…
Cancel
Save