Skip to content

Commit

Permalink
Fix RandomSamplerIT#testRandomSamplerHistogram test input (elastic#88191
Browse files Browse the repository at this point in the history
) (elastic#88288)

Periodically, a single 10 value is included which causes a 3rd histogram bucket to be created with very few values. Meaning sampling wouldn't get any docs that hit that bucket (especially with the randomly included deleted docs).

The failures that I saw had the 10.0 bucket with just one document.

closes: elastic#88108
  • Loading branch information
benwtrent authored Jul 5, 2022
1 parent 9fd752e commit 4e6b148
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void setupSuiteScopeCluster() throws Exception {
randomNumber = randomDoubleBetween(0.0, 3.0, false);
} else {
keywordValue = UPPER_KEYWORD;
randomNumber = randomDoubleBetween(5.0, 10.0, false);
randomNumber = randomDoubleBetween(5.0, 9.0, false);
}
builders.add(
client().prepareIndex("idx")
Expand Down

0 comments on commit 4e6b148

Please sign in to comment.