Skip to content

Scriptfield test: set number of shards to 1 (#80026)#80032

Merged
stu-elastic merged 1 commit intoelastic:8.0from
stu-elastic:8.0_pain_yaml_unsupported
Oct 28, 2021
Merged

Scriptfield test: set number of shards to 1 (#80026)#80032
stu-elastic merged 1 commit intoelastic:8.0from
stu-elastic:8.0_pain_yaml_unsupported

Conversation

@stu-elastic
Copy link
Copy Markdown
Contributor

The 20_scriptfield:"Scripted Field with error accessing an
unsupported field via the script fields api" test expects to fail because
the field is not yet supported in the fields API.

However, if the number of shards in the target index is randomly more
than one, the empty shard will succeed leading to a 200 response rather
than the expected 400 response.

This change forces the number of shards to 1 to avoid this scenario.

Fixes: #79986
Backport: 9511c54

The 20_scriptfield:"Scripted Field with error accessing an
unsupported field via the script fields api" test expects to fail because
the field is not yet supported in the fields API.

However, if the number of shards in the target index is randomly more
than one, the empty shard will succeed leading to a 200 response rather
than the expected 400 response.

This change forces the number of shards to 1 to avoid this scenario.

Fixes: elastic#79986
Backport: 9511c54
@stu-elastic stu-elastic added >test Issues or PRs that are addressing/adding tests :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache backport v8.0.0 labels Oct 28, 2021
@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label Oct 28, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@stu-elastic stu-elastic merged commit 28d0446 into elastic:8.0 Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache Team:Core/Infra Meta label for core/infra team >test Issues or PRs that are addressing/adding tests v8.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants