public TConfigNodeRegisterResp registerConfigNode(TConfigNodeRegisterReq req) {
    int nodeId = nodeInfo.generateNextNodeId();
    req.getConfigNodeLocation().setConfigNodeId(nodeId);
    configManager.getProcedureManager().addConfigNode(req);
    return new TConfigNodeRegisterResp()
        .setStatus(ClusterNodeStartUtils.ACCEPT_NODE_REGISTRATION)
        .setConfigNodeId(nodeId);
  }
Removes the specified DataNodes.

@param removeDataNodePlan the plan detailing which DataNodes to remove
@return DataNodeToStatusResp, where the TSStatus will be SUCCEED_STATUS if the request is
    accepted, or DATANODE_NOT_EXIST if any DataNode does not exist.
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/node/NodeManager.java