huangzhir commented on issue #4847:
URL: https://github.com/apache/kyuubi/issues/4847#issuecomment-1566734603

   > What's the behavior of HiveServer2?
   
   Good idea. I looked into the code of HiveServer2, and I found that the 
sessionManager does not handle whether the session is actually alive.If 
HiveServer2 is using the Tez engine, it will ultimately reference a TezClient 
(tezSession). Inside the TezClient, there is a heartbeat check thread that 
regularly checks if the heartbeat is normal. If a session is not alive, it only 
prints error logs without performing any other handling.
   
https://github.com/apache/tez/blame/ccad71dabceb850b58ff38e77fd206e68f62ce4b/tez-api/src/main/java/org/apache/tez/client/TezClient.java#L538
   
   When executing SQL tasks, if TezClient encounters a SessionNotRunning 
exception, it will create a new tezclient and submit job .
   
https://github.com/apache/hive/blob/7bfc54ffc8baf5f3e7de326b750fe9355b11132b/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezTask.java#L633


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