Skip to content

Conversation

@dnhatn
Copy link
Member

@dnhatn dnhatn commented Mar 12, 2020

Concurrent scroll search requests can lead to more scroll contexts than the limit.

@dnhatn dnhatn added >bug :Search/Search Search-related issues that do not fall into other categories v8.0.0 v7.7.0 v7.6.2 v6.8.8 labels Mar 12, 2020
@dnhatn dnhatn requested a review from jimczi March 12, 2020 04:20
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search (:Search/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.

Good catch @dnhatn , LGTM

@dnhatn
Copy link
Member Author

dnhatn commented Mar 12, 2020

testHistoryIsWrittenWithDeletion

@elasticmachine run elasticsearch-ci/2

@dnhatn
Copy link
Member Author

dnhatn commented Mar 12, 2020

Thanks Jim.

@dnhatn dnhatn merged commit a8d89fd into elastic:master Mar 12, 2020
@dnhatn dnhatn deleted the fix-scroll-limit branch March 12, 2020 15:51
dnhatn added a commit that referenced this pull request Mar 12, 2020
Concurrent search scroll requests can lead to more scroll contexts than the limit.
dnhatn added a commit that referenced this pull request Mar 13, 2020
Concurrent search scroll requests can lead to more scroll contexts than the limit.
dnhatn added a commit that referenced this pull request Mar 13, 2020
Concurrent search scroll requests can lead to more scroll contexts than the limit.
dnhatn added a commit that referenced this pull request Apr 7, 2021
The scroll context counter can be negative even become Integer.MAX_VALUE
after handling many search requests.  This bug causes two issues:

- Disable the limit of open scroll contexts when the counter is negative
- Prevent opening new scroll contexts when the counter is greater than 
  the limit of open scroll contexts

Relates #53449
Closes #56202
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>bug :Search/Search Search-related issues that do not fall into other categories v7.7.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants