Closed
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