public TSStatus setDataNodeStatus(TSetDataNodeStatusReq setDataNodeStatusReq) {
    return (TSStatus)
        SyncDataNodeClientPool.getInstance()
            .sendSyncRequestToDataNodeWithRetry(
                setDataNodeStatusReq.getTargetDataNode().getInternalEndPoint(),
                setDataNodeStatusReq.getStatus(),
                CnToDnSyncRequestType.SET_SYSTEM_STATUS);
  }
Only leader use this interface, check the ConfigNode before remove it.

@param removeConfigNodePlan RemoveConfigNodePlan
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/node/NodeManager.java