wForget opened a new issue, #2422:
URL: https://github.com/apache/incubator-kyuubi/issues/2422

   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   
   
   ### Search before asking
   
   - [X] I have searched in the 
[issues](https://github.com/apache/incubator-kyuubi/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What would you like to be improved?
   
   I noticed that close session may throw an exception, so we need to wrap it 
with try-finally.
   
   error msg:
   ```
   2022-04-03 01:49:03,868 WARN  [KyuubiSessionManager-timeout-checker: 
Thread-87]: org.apache.kyuubi.session.KyuubiSessionManager(66) - Error closing 
idle session SessionHandle [9fd83fe9-ad72-4038-b667-03dd8af9a86d]
   org.apache.kyuubi.KyuubiSQLException: Invalid OperationHandle 
[type=UNKNOWN_OPERATION, identifier: 7e747046-4adb-48ae-b710-d180a4276c1a]
           at 
org.apache.kyuubi.KyuubiSQLException$.apply(KyuubiSQLException.scala:69)
           at 
org.apache.kyuubi.operation.OperationManager.removeOperation(OperationManager.scala:88)
           at 
org.apache.kyuubi.operation.OperationManager.closeOperation(OperationManager.scala:103)
           at 
org.apache.kyuubi.session.AbstractSession.$anonfun$closeOperation$1(AbstractSession.scala:180)
           at 
scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
           at 
org.apache.kyuubi.session.AbstractSession.withAcquireRelease(AbstractSession.scala:75)
           at 
org.apache.kyuubi.session.AbstractSession.closeOperation(AbstractSession.scala:178)
           at org.apache.kyuubi.session.KyuubiSessionImpl.close(KyuubiSessionImp
   ```
   
   ### How should we improve?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!


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