This is an automated email from the ASF dual-hosted git repository. kxiao pushed a commit to branch branch-2.0 in repository https://gitbox.apache.org/repos/asf/doris.git
commit ba3f54dc2ef7efe2a39d7e63cc48f384a83418c8 Author: zxealous <zhouchang...@baidu.com> AuthorDate: Thu Aug 31 10:53:34 2023 +0800 [fix](deploy) fix deploy manager can't drop node (#23667) --- fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java | 2 +- fe/fe-core/src/main/java/org/apache/doris/system/SystemInfoService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java b/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java index f679f679c8..51601f4695 100755 --- a/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java +++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java @@ -977,7 +977,7 @@ public class Env { // For compatibility. Because this is the very first time to start, so we arbitrarily choose // a new name for this node role = FrontendNodeType.FOLLOWER; - nodeName = genFeNodeName(selfNode.getIdent(), + nodeName = genFeNodeName(selfNode.getHost(), selfNode.getPort(), false /* new style */); storage.writeFrontendRoleAndNodeName(role, nodeName); LOG.info("very first time to start this node. role: {}, node name: {}", role.name(), nodeName); diff --git a/fe/fe-core/src/main/java/org/apache/doris/system/SystemInfoService.java b/fe/fe-core/src/main/java/org/apache/doris/system/SystemInfoService.java index 8826fbbf64..5cc6b36f87 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/system/SystemInfoService.java +++ b/fe/fe-core/src/main/java/org/apache/doris/system/SystemInfoService.java @@ -105,7 +105,7 @@ public class SystemInfoService { } public String getIdent() { - return host; + return host + "_" + port; } @Override --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org