Skip to content

Fix concurrent search index delete 6 8#42977

Merged
henningandersen merged 2 commits intoelastic:6.8from
henningandersen:fix_concurrent_search_index_delete_6_8
Jun 7, 2019
Merged

Fix concurrent search index delete 6 8#42977
henningandersen merged 2 commits intoelastic:6.8from
henningandersen:fix_concurrent_search_index_delete_6_8

Conversation

@henningandersen
Copy link
Copy Markdown
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
Copy Markdown
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.

2 participants