[fix](deploy) fix deploy manager can't drop node (#23667)

This commit is contained in:
zxealous
2023-08-31 10:53:34 +08:00
committed by GitHub
parent 618f12115f
commit 08b4977d44
2 changed files with 2 additions and 2 deletions

View File

@ -999,7 +999,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);

View File

@ -105,7 +105,7 @@ public class SystemInfoService {
}
public String getIdent() {
return host;
return host + "_" + port;
}
@Override