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 search index delete 6 8 #42977

Conversation

henningandersen
Copy link
Contributor

Changed order of listener invocation so that we notify before
registering search context and notify after unregistering same.

This ensures that count up/down like what we do in ShardSearchStats
works. Otherwise, we risk notifying onFreeScrollContext before notifying
onNewScrollContext (same for onFreeContext/onNewContext, but we
currently have no assertions failing in those).

Closes #28053
Backport of #42621

henningandersen and others added 2 commits June 7, 2019 08:35
Changed order of listener invocation so that we notify before
registering search context and notify after unregistering same.

This ensures that count up/down like what we do in ShardSearchStats
works. Otherwise, we risk notifying onFreeScrollContext before notifying
onNewScrollContext (same for onFreeContext/onNewContext, but we
currently have no assertions failing in those).

Closes elastic#28053
@henningandersen henningandersen added >bug :Search/Search Search-related issues that do not fall into other categories backport v6.8.1 labels Jun 7, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search

@henningandersen henningandersen merged commit 2ca4055 into elastic:6.8 Jun 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport >bug :Search/Search Search-related issues that do not fall into other categories v6.8.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants