public void cleanupQueryExecution(Long queryId) {
    cleanupQueryExecution(queryId, null, null);
  }
This method is called by the write method. So it does not set the timeout parameter.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/Coordinator.java