Skip to content

[Bug] Delete /sessions/<nonExistingSessionHandle> returns 500 instead of 404 #7218

@moelhoussein

Description

@moelhoussein

Code of Conduct

Search before asking

  • I have searched in the issues 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.

Is a NotFoundException more appropriate like what we do for the get endpoint?:

Affects Version(s)

master

Kyuubi Server Log Output

Kyuubi Engine Log Output

Kyuubi Server Configurations

Kyuubi Engine Configurations

Additional context

No response

Are you willing to submit PR?

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions