Skip to content

[8.5] [Tests] Don't use concurrent search in scripted field type tests (#90712)#90716

Merged
elasticsearchmachine merged 1 commit intoelastic:8.5from
cbuescher:backport/8.5/pr-90712
Oct 6, 2022
Merged

[8.5] [Tests] Don't use concurrent search in scripted field type tests (#90712)#90716
elasticsearchmachine merged 1 commit intoelastic:8.5from
cbuescher:backport/8.5/pr-90712

Conversation

@cbuescher
Copy link
Copy Markdown
Member

Backports the following commits to 8.5:

…stic#90712)

The field types in these tests use scripts which accesses _source via
SourceLookup, which in turn isn't thread-safe. Since ES doesn't use concurent
search on the Lucene level it is safe to disable the otherwise randomized use of
multiple threads in searchers. This change adds a new helper method for that in
AbstractScriptFieldTypeTestCase which all of the sub-test use.

Closes elastic#90497
@cbuescher cbuescher added :Search Foundations/Mapping Index mappings, including merging and defining field types >test Issues or PRs that are addressing/adding tests auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Search Meta label for search team labels Oct 6, 2022
@elasticsearchmachine elasticsearchmachine merged commit 0f9946d into elastic:8.5 Oct 6, 2022
@cbuescher cbuescher deleted the backport/8.5/pr-90712 branch October 6, 2022 14:29
@csoulios csoulios added v8.5.0 and removed v8.5.1 labels Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport :Search Foundations/Mapping Index mappings, including merging and defining field types Team:Search Meta label for search team >test Issues or PRs that are addressing/adding tests v8.5.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants