Skip to content

Extend async search keep alive #67877

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

Merged
merged 4 commits into from
Jan 25, 2021
Merged

Conversation

dnhatn
Copy link
Member

@dnhatn dnhatn commented Jan 25, 2021

There can be a race between two GET async search requests, and the one with a lower keep_alive parameter wins the race. This scenario is not desirable as we should retain the search result for all requests. This commit ensures the keep_alive is extended and never goes backward.

Relates elastic/kibana#88599

@dnhatn dnhatn added the WIP label Jan 25, 2021
@dnhatn dnhatn force-pushed the extend-keep-alive branch from a144a06 to 47e13b1 Compare January 25, 2021 04:29
@dnhatn dnhatn force-pushed the extend-keep-alive branch from 77b21fd to 15f046d Compare January 25, 2021 16:41
@dnhatn dnhatn requested a review from jimczi January 25, 2021 17:02
@dnhatn dnhatn added :Search/Search Search-related issues that do not fall into other categories >enhancement v8.0.0 v7.12.0 and removed WIP labels Jan 25, 2021
@dnhatn dnhatn marked this pull request as ready for review January 25, 2021 17:19
@elasticmachine elasticmachine added the Team:Search Meta label for search team label Jan 25, 2021
@elasticmachine
Copy link
Collaborator

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

Copy link
Contributor

@jimczi jimczi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left two minor comments regarding naming but the change looks great, thanks @dnhatn !

@dnhatn
Copy link
Member Author

dnhatn commented Jan 25, 2021

Thanks Jim!

@dnhatn dnhatn merged commit 244fc95 into elastic:master Jan 25, 2021
@dnhatn dnhatn deleted the extend-keep-alive branch January 25, 2021 22:46
dnhatn added a commit that referenced this pull request Jan 26, 2021
There can be a race between two GET async search requests, and the one
with a lower keep_alive parameter wins the race. This scenario is not
desirable as we should retain the search result for all requests. This
commit ensures the keep_alive is extended and never goes backward.
@lizozom
Copy link

lizozom commented Feb 9, 2021

@jimczi I thought we ended up agreeing that following elastic/kibana#89570 we actually don't need this restriction.
Do you think it's justified to keep it still? Or maybe it's worth reverting?

@jimczi
Copy link
Contributor

jimczi commented Feb 9, 2021

Good call @lizozom , we added the restriction before the design change in elastic/kibana#89570 but +1 to revert. I'll open a new PR.

jimczi added a commit to jimczi/elasticsearch that referenced this pull request Feb 10, 2021
jimczi added a commit that referenced this pull request Feb 10, 2021
@jimczi
Copy link
Contributor

jimczi commented Feb 10, 2021

Reverted by #67877

jimczi added a commit that referenced this pull request Feb 10, 2021
jimczi added a commit that referenced this pull request Feb 22, 2021
jimczi added a commit that referenced this pull request Feb 22, 2021
jimczi added a commit that referenced this pull request Feb 22, 2021
@mayya-sharipova mayya-sharipova mentioned this pull request Jul 20, 2022
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants