huangzhir commented on PR #4714:
URL: https://github.com/apache/kyuubi/pull/4714#issuecomment-1509435982

   Cause of this issue:
   1. threads.shutdown() is asynchronous.
   2. When using eventually to judge, if job2 finishes first and job1 has not 
finished, the value of job1FinishTime is 0. job2FinishTime - job1FinishTime >= 
1000 is definitely greater than 0. The main program will exit the eventually 
method and end the main thread.
   3. However, job1 has not produced a result yet, and closing the statement 
and session will cause an exception.
   4. The root cause is that job1 and job2 are executed in multiple threads 
almost simultaneously, and which one is job1 or job2 is not fixed.


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