yaooqinn opened a new issue #821:
URL: https://github.com/apache/incubator-kyuubi/issues/821


   ### 1. Describe the bug
   
   <!-- A clear and concise description of what the bug is. -->
   
   Improper exception for closing a non-existent session
   
   ```
   org.apache.kyuubi.KyuubiSQLException: Invalid SessionHandle 
[93904f38-0dcc-478a-8a39-1e7647a18677]
        at 
org.apache.kyuubi.KyuubiSQLException$.apply(KyuubiSQLException.scala:68)
        at 
org.apache.kyuubi.session.SessionManager.closeSession(SessionManager.scala:70)
        at 
org.apache.kyuubi.service.AbstractBackendService.closeSession(AbstractBackendService.scala:49)
        at 
org.apache.kyuubi.service.FrontendService$FeTServerEventHandler.deleteContext(FrontendService.scala:527)
        at 
org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:300)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
   ```
   
   if the session being requested to close is null, we only need a warning here
   
   ### 2. Environments
   
   #### 2.1 Versions
   
   - Kyuubi
     - [ ] 1.1.0
     - [ ] 1.0.3
     - [ ] 0.8.x and earlier <!-- Please update Kyuubi, versions of 0.x are no 
longer supported by the community -->
   
   - Spark
     - [ ] 3.1.x
     - [ ] 3.0.x
     - [ ] 2.4.x and earlier <!-- Please update Spark, versions of 2.x are no 
longer supported by the community -->
   
   #### 2.2 Kyuubi Configurations
   
   #### 2.3 Spark Configurations
   
   
   ### 3. Steps to reproduce
   
   #### 3.1 Operations
   
   #### 3.2 Expected behavior
   
   <!-- A clear and concise description of what you expected to happen. -->
   
   #### 3.3 Actual behavior
   
   ### 4. Additional context
   
   #### 4.1 Log of the server
   
   #### 4.2 Log of the corresponding engine


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