diff --git a/src/main/java/com/actiontech/dble/services/manager/response/ha/DbGroupHaSwitch.java b/src/main/java/com/actiontech/dble/services/manager/response/ha/DbGroupHaSwitch.java index a0626ca383..543418db6a 100644 --- a/src/main/java/com/actiontech/dble/services/manager/response/ha/DbGroupHaSwitch.java +++ b/src/main/java/com/actiontech/dble/services/manager/response/ha/DbGroupHaSwitch.java @@ -61,6 +61,11 @@ public static void execute(Matcher switcher, ManagerService service) { try { //dble start in single mode String result = dh.switchMaster(masterName, true); + + if (ClusterConfig.getInstance().isClusterEnable()) { + ClusterHelper.setKV(ClusterPathUtil.getHaStatusPath(dh.getGroupName()), result); + } + HaConfigManager.getInstance().haFinish(id, null, result); } catch (Exception e) { HaConfigManager.getInstance().haFinish(id, e.getMessage(), null);