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

Fix concurrent issue in SearchPhaseController #49829

Merged

Conversation

jimczi
Copy link
Contributor

@jimczi jimczi commented Dec 4, 2019

The list used by the search progress listener can be nullified by another thread that
reports a query result. This change replaces the usage of this list with a new array that is synchronously modified.

I tagged this pr with non-issue because it only affects master and 7.x, all non-released branches.

Closes #49778

The list used by the search progress listener can be nullified
by another thread that reports a query result. This change replaces
the usage of this list with a new array that is synchronously modified.

Closes elastic#49778
@jimczi jimczi added >non-issue :Search/Search Search-related issues that do not fall into other categories v8.0.0 v7.6.0 labels Dec 4, 2019
@jimczi jimczi requested a review from iverase December 4, 2019 13:23
@elasticmachine
Copy link
Collaborator

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

Copy link
Contributor

@iverase iverase left a comment

Choose a reason for hiding this comment

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

lgtm

@jimczi jimczi merged commit 6bacdf6 into elastic:master Dec 4, 2019
@jimczi jimczi deleted the bug/search_progress_listener_concurrent branch December 4, 2019 15:50
jimczi added a commit that referenced this pull request Dec 5, 2019
The list used by the search progress listener can be nullified
by another thread that reports a query result. This change replaces
the usage of this list with a new array that is synchronously modified.

Closes #49778
SivagurunathanV pushed a commit to SivagurunathanV/elasticsearch that referenced this pull request Jan 23, 2020
The list used by the search progress listener can be nullified
by another thread that reports a query result. This change replaces
the usage of this list with a new array that is synchronously modified.

Closes elastic#49778
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>non-issue :Search/Search Search-related issues that do not fall into other categories v7.6.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] Failure in SumIT.testSingleValuedFieldWithFormatter
4 participants