huangzhir opened a new issue, #4847: URL: https://github.com/apache/kyuubi/issues/4847
### 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/kyuubi/issues?q=is%3Aissue) and found no similar issues. ### Describe the bug While using the Kyuubi REST functionality, I encountered the following issues: I created a session and submitted a statement. However, this statement had an issue that caused the Spark engine to crash. For example, I submitted a spark.stop Scala code snippet. POST http://127.0.0.1:10099/api/v1/sessions/5536200f-cfbc-44ff-a5fd-05a34c9892ab/operations/statement ``` { "statement": "spark.close", "runAsync": true, "confOverlay": { "kyuubi.operation.language":"SCALA" } } ``` Here, because the engine crashed, the Spark session is closed. However, Kyuubi still maintains this session. When using the 'list session' and 'session count' interfaces, I can see that the session is still present.Even after half an hour, the situation remains the same. GET http://127.0.0.1:10099/api/v1/sessions return ``` [ { "identifier": "5536200f-cfbc-44ff-a5fd-05a34c9892ab", "user": "anonymous", "ipAddr": "127.0.0.1", "conf": { "kyuubi.session.connection.url": "0.0.0.0:10099", "kyuubi.server.ipAddress": "0.0.0.0", "kyuubi.session.real.user": "anonymous", "kyuubi.client.ipAddress": "127.0.0.1" }, "createTime": 1684309480586, "duration": 39452, "idleTime": 0, "exception": "", "sessionType": "INTERACTIVE", "kyuubiInstance": "0.0.0.0:10099", "engineId": "local-1684309482569" } ] ``` ### Affects Version(s) 1.6,1.7,master ### Kyuubi Server Log Output _No response_ ### Kyuubi Engine Log Output _No response_ ### Kyuubi Server Configurations _No response_ ### Kyuubi Engine Configurations _No response_ ### Additional context _No response_ ### Are you willing to submit PR? - [X] Yes. I would be willing to submit a PR with guidance from the Kyuubi community to fix. - [ ] No. I cannot submit a PR at this time. -- 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]
