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

Use ConcurrentHashMap in SCAN search to keep track of the reader states. #7499

Closed
wants to merge 1 commit into from

Conversation

martijnvg
Copy link
Member

PR for #7478

@jpountz
Copy link
Contributor

jpountz commented Aug 28, 2014

Should ReaderState.count and done also be made volatile to ensure visibility of the changes?

@jpountz
Copy link
Contributor

jpountz commented Aug 28, 2014

@martijnvg just told me that they are no modified after having been added to the map, so that is fine. :-)

@jpountz
Copy link
Contributor

jpountz commented Aug 28, 2014

LGTM

…tes is accessed by multiple threads during the entire scroll session.

Closes elastic#7499
Closes elastic#7478
martijnvg added a commit that referenced this pull request Aug 28, 2014
…tes is accessed by multiple threads during the entire scroll session.

Closes #7499
Closes #7478
martijnvg added a commit that referenced this pull request Aug 28, 2014
…tes is accessed by multiple threads during the entire scroll session.

Closes #7499
Closes #7478
@martijnvg martijnvg closed this in 4c690fa Aug 28, 2014
martijnvg added a commit that referenced this pull request Aug 28, 2014
…tes is accessed by multiple threads during the entire scroll session.

Closes #7499
Closes #7478
martijnvg added a commit that referenced this pull request Sep 8, 2014
…tes is accessed by multiple threads during the entire scroll session.

Closes #7499
Closes #7478
@martijnvg martijnvg deleted the bugs/scan_concurrent_map branch May 18, 2015 23:30
@clintongormley clintongormley changed the title Scan: Use ConcurrentHashMap in scan search to keep track of the reader states. Use ConcurrentHashMap in SCAN search to keep track of the reader states. Jun 7, 2015
@clintongormley clintongormley added the :Search/Search Search-related issues that do not fall into other categories label Jun 7, 2015
mute pushed a commit to mute/elasticsearch that referenced this pull request Jul 29, 2015
…tes is accessed by multiple threads during the entire scroll session.

Closes elastic#7499
Closes elastic#7478
mute pushed a commit to mute/elasticsearch that referenced this pull request Jul 29, 2015
…tes is accessed by multiple threads during the entire scroll session.

Closes elastic#7499
Closes elastic#7478
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 v1.2.5 v1.3.3 v1.4.0.Beta1 v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants