private static TSStatus rejectRegistrationBecauseConflictEndPoints(
      NodeType nodeType, List<TEndPoint> conflictEndPoints) {
    TSStatus status = new TSStatus();
    status.setCode(TSStatusCode.REJECT_NODE_START.getStatusCode());
    status.setMessage(
        String.format(
            "Reject %s registration. Because the following ip:port: %s of the current %s is conflicted with other registered Nodes in the cluster."
                + POSSIBLE_SOLUTIONS
                + "\t1. Use SQL: \"show cluster details\" to find out the conflict Nodes. Remove them and retry start."
                + "\n\t2. Change the conflict ip:port configurations in %s file and retry start.",
            nodeType.getNodeType(),
            conflictEndPoints,
            nodeType.getNodeType(),
            CommonConfig.SYSTEM_CONFIG_NAME));
    return status;
  }
Startup check utils before register/restart a ConfigNode/DataNode.
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/node/ClusterNodeStartUtils.java