dajiaohuang commented on PR #7797:
URL: https://github.com/apache/kyuubi/pull/7797#issuecomment-6453970094

   Thanks for the suggestion. I simplified the wait helper to use the 
one-second timed-latch loop from #7680, with the stopped-context check and 
warning.
   
   I intentionally exit the wait rather than call `currentEngine.stop()` again 
on every timeout. `SparkSQLEngine.stop()` is guarded by 
`shutdown.compareAndSet(false, true)`, so if shutdown is already stalled, 
another call is a no-op and leaves the main thread waiting. Returning lets 
`main` continue through its `finally` cleanup.
   
   The targeted `SparkSQLEngineSuite` passed 3/3 for the behavior change. I 
added only a comment afterward; no Maven rerun was done.


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