Skip to content

Fix concurrent issue in SearchPhaseController#49829

Merged
jimczi merged 2 commits intoelastic:masterfrom
jimczi:bug/search_progress_listener_concurrent
Dec 4, 2019
Merged

Fix concurrent issue in SearchPhaseController#49829
jimczi merged 2 commits intoelastic:masterfrom
jimczi:bug/search_progress_listener_concurrent

Conversation

@jimczi
Copy link
Copy Markdown
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
Copy Markdown
Collaborator

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

Copy link
Copy Markdown
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