Skip to content

Conversation

@pugnascotia
Copy link
Contributor

Closes #52450. setRandomIndexSettings(...) in ESIntegTestCase was
using both a thread-local and a supplied source of randomness. Fix this
method to only use the supplied source.

Closes elastic#52450. `setRandomIndexSettings(...)` in `ESIntegTestCase` was
using both a thread-local and a supplied source of randomness. Fix this
method to only use the supplied source.
@pugnascotia pugnascotia added >bug >test Issues or PRs that are addressing/adding tests :Delivery/Build Build or test infrastructure v8.0.0 v7.7.0 labels Feb 18, 2020
@pugnascotia pugnascotia requested a review from jpountz February 18, 2020 09:42
@elasticmachine
Copy link
Collaborator

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

Copy link
Contributor

@jpountz jpountz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@pugnascotia pugnascotia merged commit 4ace062 into elastic:master Feb 18, 2020
@pugnascotia pugnascotia deleted the 52450-cleanup-random-use branch February 18, 2020 10:44
pugnascotia added a commit that referenced this pull request Feb 18, 2020
Closes #52450. `setRandomIndexSettings(...)` in `ESIntegTestCase` was
using both a thread-local and a supplied source of randomness. Fix this
method to only use the supplied source.
@pugnascotia
Copy link
Contributor Author

Backported in 4fb3993

sbourke pushed a commit to sbourke/elasticsearch that referenced this pull request Feb 19, 2020
Closes elastic#52450. `setRandomIndexSettings(...)` in `ESIntegTestCase` was
using both a thread-local and a supplied source of randomness. Fix this
method to only use the supplied source.
@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery team label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>bug :Delivery/Build Build or test infrastructure Team:Delivery Meta label for Delivery team >test Issues or PRs that are addressing/adding tests v7.7.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EsIntegTestCase#setRandomIndexSettings mixes usage of the threadlocal random and supplied random

5 participants