lancelly commented on code in PR #9640:
URL: https://github.com/apache/iotdb/pull/9640#discussion_r1170224402


##########
server/src/main/java/org/apache/iotdb/db/mpp/execution/schedule/DriverScheduler.java:
##########
@@ -299,13 +299,8 @@ public void abortQuery(QueryId queryId) {
       for (Set<DriverTask> fragmentRelatedTasks : queryRelatedTasks.values()) {
         if (fragmentRelatedTasks != null) {
           for (DriverTask task : fragmentRelatedTasks) {
-            task.lock();
-            try {
-              
task.setAbortCause(DriverTaskAbortedException.BY_QUERY_CASCADING_ABORTED);
-              clearDriverTask(task);
-            } finally {
-              task.unlock();
-            }
+            
task.setAbortCause(DriverTaskAbortedException.BY_QUERY_CASCADING_ABORTED);

Review Comment:
   > Oh, even though we set it with lock, it can be occupied too. Maybe a 
status check is necessary, or just delete the abort cause, it seems we don't 
care it...
   
   For now we just need it not to be NULL



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to