wangzhigang1999 commented on PR #7840:
URL: https://github.com/apache/kyuubi/pull/7840#issuecomment-6633867165

   Thanks for adding these diagnostics! I checked the [JDK25/Spark4.3 
artifacts](https://github.com/apache/kyuubi/actions/runs/41776919187/artifacts/13300339105)
 and found a useful clue.
   
   After DescribeSessionSuite passes, the ZooKeeper NodeDeleted watcher throws 
an NPE in ZookeeperDiscoveryClient.deregisterService():248. It appears that the 
shutdown thread and watcher race on serviceNode: one clears it between the 
other’s null check and close() call.
   
   The exception prevents the watcher from reaching stopGracefully(), leaving 
gracefulShutdownLatch unreleased. Both thread dumps show the ScalaTest main 
thread waiting in KyuubiServiceDiscovery.stop():35, with Maven waiting for the 
test JVM to exit. This explains the hang in this run.
   
   Would you be interested in following up with a fix and a regression test for 
this race? Thanks again for helping capture the evidence!


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