Skip to content
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

Provide a way to only extend async_search keep_alive #86011

Closed
Tracked by #88658
Dosant opened this issue Apr 19, 2022 · 2 comments
Closed
Tracked by #88658

Provide a way to only extend async_search keep_alive #86011

Dosant opened this issue Apr 19, 2022 · 2 comments
Labels
>enhancement :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team

Comments

@Dosant
Copy link
Contributor

Dosant commented Apr 19, 2022

Description

Currently, in Kibana we extend async searches using the keep_alive parameter of GET async_search request.

Kibana uses search polling to support long-running searches. It polls with keep_alive:1m until the search completes or the user leaves.

However, as part of the search-session feature, we extend searches that belong to a saved search session to a 1w. Since in parallel there might be a search polling process that is using keep_alive:1m we might hit a race condition where some searches are overwritten with 1m instead of previously set 1w.

image

We have and can work around this race condition by some client-side management overhead, but in general, it would be useful to us to have an API that allows us to only extend the keep_alive.

Please evaluate if this is a worthy addition to the API or feel free to close otherwise.

Some previous related work on this:

@Dosant Dosant added >enhancement :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team labels Apr 19, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

@javanna
Copy link
Member

javanna commented Jun 9, 2023

We have no plans to work on this, please reach out if this is a blocker on your end.

@javanna javanna closed this as not planned Won't fix, can't repro, duplicate, stale Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team
Projects
None yet
Development

No branches or pull requests

3 participants