private TSStatus killAllQueries() {
    Map<Integer, TDataNodeLocation> dataNodeLocationMap =
        configManager.getNodeManager().getRegisteredDataNodeLocations();
    DataNodeAsyncRequestContext<String, TSStatus> clientHandler =
        new DataNodeAsyncRequestContext<>(
            CnToDnAsyncRequestType.KILL_QUERY_INSTANCE, dataNodeLocationMap);
    CnToDnInternalServiceAsyncRequestManager.getInstance().sendAsyncRequestWithRetry(clientHandler);
    return RpcUtils.squashResponseStatusList(clientHandler.getResponseList());
  }
Kill read on DataNode.

@param queryId the id of specific read need to be killed, it will be NULL if kill all queries
@param dataNodeId the DataNode obtains target read, -1 means we will kill all queries on all
    DataNodes
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/node/NodeManager.java