Skip to content

Delete Memory Container API returns 500 instead of 404 for non-existent container #4706

@kolchfa-aws

Description

@kolchfa-aws

When attempting to delete a memory container that doesn't exist, the API returns 500 INTERNAL_SERVER_ERROR instead of the more appropriate 404 NOT_FOUND status code.

Relevant code:

TransportDeleteMemoryContainerAction.java https://github.com/opensearch-project/ml-commons/blob/main/plugin/src/main/java/org/opensearch/ml/action/memorycontainer/TransportDeleteMemoryContainerAction.java#L159-L162

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingv3.6.0Issues targeting release v3.6.0

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions