zhenjiaguo commented on pull request #1468:
URL: https://github.com/apache/incubator-kyuubi/pull/1468#issuecomment-982622821


   > > > can you check the jstack to see which non-daemon thread prevents 
termination when an exception occurs?
   > > 
   > > 
   > > I use Arthas to see, Non-daemon thread is:
   > > ```shell
   > > "SessionTracker" Id=22 TIMED_WAITING on 
org.apache.zookeeper.server.SessionTrackerImpl@5344d655
   > >     at java.lang.Object.wait(Native Method)
   > >     -  waiting on org.apache.zookeeper.server.SessionTrackerImpl@5344d655
   > >     at 
org.apache.zookeeper.server.SessionTrackerImpl.run(SessionTrackerImpl.java:147)
   > > ```
   > > 
   > > 
   > >     
   > >       
   > >     
   > > 
   > >       
   > >     
   > > 
   > >     
   > >   
   > > Thread states are `TIMED_WAIT`.
   > 
   > Does this issue only occur when using embedded Zookeeper?
   
   YES, It causes by `zkServer.start()`. It has a thread still running when 
`KyuubiServer` initialize fail. 
   To make sure of this, I configure external zookeeper to confirm. It can exit 
when `KyuubiServer` initialize fail. 
   
   What do you think set embedded Zookeeper run as daemon thread, or do you 
have a better way to resolve it? 


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