diff options
author | Jason Tedor <jason@tedor.me> | 2016-01-25 05:39:51 -0500 |
---|---|---|
committer | Jason Tedor <jason@tedor.me> | 2016-01-25 08:30:24 -0500 |
commit | 4c1e93bd89cfbf97c25e84e0cdcf9818e9cd97f6 (patch) | |
tree | e4b97fa7088a7c904780873bd28bf5cf78ce0435 /core/src/test/java/org/elasticsearch/search/profile | |
parent | aff3c564b39e0f26c88f7ce1ea48a4bc4a862d0b (diff) |
Reproducible randoms in SearchWhileCreatingIndexIT
This commit removes non-reproducible randomness from
SearchWhileCreatingIndexIT. The cause of the non-reproducible randomness
is the use of a random draws for the shard preference inside of a
non-deterministic while loop. Because the inner while loop executed a
non-deterministic number of times, the draws for the next iteration of
the outer loop would be impacted by this making the random draws
non-reproducible. The solution is to move the random draws outside of
the while loop (just make a single draw for the prefernce and increment
with a counter), and remove the outer loop iteration instead using an
annotation to get the desired repetitions.
Closes #16208
Diffstat (limited to 'core/src/test/java/org/elasticsearch/search/profile')
0 files changed, 0 insertions, 0 deletions