You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@kyuubi.apache.org by "moelhoussein (via GitHub)" <gi...@apache.org> on 2025/09/29 04:44:45 UTC

[I] [Bug] Delete /sessions/ returns 500 instead of 404 [kyuubi]

moelhoussein opened a new issue, #7218:
URL: https://github.com/apache/kyuubi/issues/7218

   ### 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
   
   kyuubi returns http `500` response when user does `DELETE` on a non existing or cleaned up session id. 
   
   https://github.com/apache/kyuubi/blob/494c42517c8e3c3f1eda533493e8193ed0ed7850/kyuubi-server/src/main/scala/org/apache/kyuubi/server/api/v1/SessionsResource.scala#L155
   
   Is a `NotFoundException` more appropriate like what we do for the get endpoint?:
   https://github.com/apache/kyuubi/blob/494c42517c8e3c3f1eda533493e8193ed0ed7850/kyuubi-server/src/main/scala/org/apache/kyuubi/server/api/v1/SessionsResource.scala#L68
   
   ### Affects Version(s)
   
   master
   
   ### Kyuubi Server Log Output
   
   ```logtalk
   
   ```
   
   ### Kyuubi Engine Log Output
   
   ```logtalk
   
   ```
   
   ### Kyuubi Server Configurations
   
   ```yaml
   
   ```
   
   ### Kyuubi Engine Configurations
   
   ```yaml
   
   ```
   
   ### 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: notifications-unsubscribe@kyuubi.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org


Re: [I] [Bug] Delete /sessions/ returns 500 instead of 404 [kyuubi]

Posted by "moelhoussein (via GitHub)" <gi...@apache.org>.
moelhoussein commented on issue #7218:
URL: https://github.com/apache/kyuubi/issues/7218#issuecomment-5323130993

   Resolved in #7319 


-- 
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: notifications-unsubscribe@kyuubi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org


Re: [I] [Bug] Delete /sessions/ returns 500 instead of 404 [kyuubi]

Posted by "moelhoussein (via GitHub)" <gi...@apache.org>.
moelhoussein closed issue #7218: [Bug] Delete /sessions/<nonExistingSessionHandle> returns 500 instead of 404
URL: https://github.com/apache/kyuubi/issues/7218


-- 
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: notifications-unsubscribe@kyuubi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org