-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Delete All PITs returns 404 if no PITs are present #5938
Comments
Thanks @nhtruong for reporting this. 200 StatusCode with { "pits": [] } is make sense for me. |
Hi! is anyone investigating this? If not, I'd like to work on it. Thanks! |
@dennxa, thanks for your interest. Yes, please go for it. I will assign the issue to you. |
I have also started working on this. I might take some time, as I am getting used to contribution and development process of the OpenSearch. |
Hi @harshjain2, I think @dennxa already start working on this, not sure if you are going to work on this together. Otherwise, feel free to pick another issue. |
Sure @anasalkouz . I will pick some other issue. |
@dennxa @anasalkouz I think I found the fix for this issue. Do let me know if you have already started working on the fix. If not I can create a PR to fix this issue. |
Hi @harshjain2, I'm still working on it, but if you already fixed the issue feel free to create a PR. |
Closing it, since the fix already merged. |
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):
The text was updated successfully, but these errors were encountered: