-
Notifications
You must be signed in to change notification settings - Fork 24.7k
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
Async Search Status return expired #66114
Comments
Pinging @elastic/es-search (Team:Search) |
First, there is only a short window when searches are expired but not yet deleted, we potentially can display their status as expired. But after that window they will deleted and we don't have a way to retrieve them anymore as we don't store expired searches. @lizozom A a bigger question that we were wondering, does Kibana itself store all async search IDs that it fires? If it does then the only reason the status for the stored ID is returned "NOT FOUND" is because it is expired (or because it was explicitly deleted). Thus, if Kibana stores all the async search IDs, we don't see the need to add |
We can derive the status if needed, I just wanted to make sure I wasn't doing duplicated work. |
@lizozom Thank you for the comment. I will be closing this issue then, as it is better to do this from Kibana, not from elasticsearch, as elasticsearch only temporarily stores expired searches. |
When async search is expired we return NOT found 404 even if it still available in task manager or
.async-search
index.Kibana team requested if it would be possible instead to return expired status in this case.
For example, a response can be:
Related to: #62947
cc: @lizozom
The text was updated successfully, but these errors were encountered: