Skip to content

[BUG] Delete All PITs returns 404 if no PITs are present #5938

Closed
@nhtruong

Description

Describe the bug
When hitting DELETE /_search/point_in_time/_all to delete all PITs, the server will return a 404 error if no PITs are present.

To Reproduce
Execute DELETE /_search/point_in_time/_all when there are not PITs.
Easiest way to do this is hitting that endpoint twice in a row.

Expected behavior
The server returns 200 StatusCode with { "pits": [] } as the body when there are no PITs to delete.

Plugins
None

Host/Environment (please complete the following information):

  • OS: Mac
  • Version: OpenSearch 2.4.x

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions