From 1c836bf011af0ad24e4d80d32c1ef84b21ee0e30 Mon Sep 17 00:00:00 2001 From: eye-gu <734164350@qq.com> Date: Wed, 19 Apr 2023 17:52:38 +0800 Subject: [PATCH] [Fix-13950][master] fix the key of master node failover (#13952) Co-authored-by: eye --- .../server/master/service/MasterFailoverService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/service/MasterFailoverService.java b/dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/service/MasterFailoverService.java index 45504a9a86..7368dc8d9f 100644 --- a/dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/service/MasterFailoverService.java +++ b/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);