ruanwenjun commented on issue #7309:
URL: https://github.com/apache/kyuubi/issues/7309#issuecomment-3782353867

   @pan3793 The `OutOfMemoryError` has not been catched.
   The error might happen at the catch code block
   ```
   } catch (Throwable e) {
                       if (ClientCnxn.this.closing) {
                           if (ClientCnxn.LOG.isDebugEnabled()) {
                               ClientCnxn.LOG.debug("An exception was thrown 
while closing send thread for session 0x" + 
Long.toHexString(ClientCnxn.this.getSessionId()) + " : " + e.getMessage());
                           }
                           break;
                       }
   
                       if (e instanceof SessionExpiredException) {
                           ClientCnxn.LOG.info(e.getMessage() + ", closing 
socket connection");
                       } else if (e instanceof SessionTimeoutException) {
                           ClientCnxn.LOG.info(e.getMessage() + ", closing 
socket connection and attempting reconnect");
                       } else if (e instanceof EndOfStreamException) {
                           ClientCnxn.LOG.info(e.getMessage() + ", closing 
socket connection and attempting reconnect");
                       } else if (e instanceof RWServerFoundException) {
                           ClientCnxn.LOG.info(e.getMessage());
                       } else if (e instanceof SocketException) {
                           ClientCnxn.LOG.info("Socket error occurred: {}: {}", 
serverAddress, e.getMessage());
                       } else {
                           ClientCnxn.LOG.warn("Session 0x{} for server {}, 
unexpected error{}", new 
Object[]{Long.toHexString(ClientCnxn.this.getSessionId()), serverAddress, ", 
closing socket connection and attempting reconnect", e});
                       }
   
                       this.cleanup();
                       if (ClientCnxn.this.state.isAlive()) {
                           ClientCnxn.this.eventThread.queueEvent(new 
WatchedEvent(EventType.None, KeeperState.Disconnected, (String)null));
                       }
   
                       this.clientCnxnSocket.updateNow();
                       this.clientCnxnSocket.updateLastSendAndHeard();
                   }
   ```


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