chenwyi2 commented on PR #16768:
URL: https://github.com/apache/iceberg/pull/16768#issuecomment-4716750632

   but when i test the case, when i kill the query and use jstack, see the 
thread, ScanTaskIterable is still not closed.
   
   2026-06-16 16:53:22.901+08:00 INFO (starrocks-mysql-nio-pool-0|166) 
[StmtExecutor] execute Exception, sql: SELECT * FROM xxx, error: killed 
manually: KILL QUERY 16777572
   
   "iceberg_catalog-sr-iceberg-worker-pool-0" #775 daemon prio=5 os_prio=0 
cpu=1518.93ms elapsed=33.72s tid=0x00007f47883b35e0 nid=0x85ccb runnable  
[0x00007f47709fe000]
      java.lang.Thread.State: TIMED_WAITING (parking)
           at jdk.internal.misc.Unsafe.park([email protected]/Native Method)
           - parking to wait for  <0x000010001f3635e8> (a 
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
           at 
java.util.concurrent.locks.LockSupport.parkNanos([email protected]/LockSupport.java:252)
           at 
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos([email protected]/AbstractQueuedSynchronizer.java:1679)
           at 
java.util.concurrent.LinkedBlockingQueue.offer([email protected]/LinkedBlockingQueue.java:378)
           at 
org.apache.iceberg.rest.ScanTaskIterable$PlanTaskWorker.offerWithTimeout(ScanTaskIterable.java:161)
           at 
org.apache.iceberg.rest.ScanTaskIterable$PlanTaskWorker.processPlanTask(ScanTaskIterable.java:224)
           at 
org.apache.iceberg.rest.ScanTaskIterable$PlanTaskWorker.run(ScanTaskIterable.java:139)
           at 
java.util.concurrent.ThreadPoolExecutor.runWorker([email protected]/ThreadPoolExecutor.java:1136)
           at 
java.util.concurrent.ThreadPoolExecutor$Worker.run([email protected]/ThreadPoolExecutor.java:635)
           at java.lang.Thread.run([email protected]/Thread.java:840)


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to