Commit 061c1fe
authored
Ensure random timestamps are within search boundary (#38753)
The random timestamps were landing too close to the current time,
so an unlucky rollup interval would round such that the doc wasn't
included in the search range (and thus not "rolled up") which
would then fail the test.
The fix is to make sure the timestamp of all docs is sufficiently behind
'now' that the possible rounding intervals will always include them.
Unmutes testRandomizedDateHisto, closes #34762
"Forward-port" of 368c6f2 (wasn't
merged into master for some reason)1 parent 296febb commit 061c1fe
File tree
1 file changed
+3
-2
lines changed- x-pack/plugin/rollup/src/test/java/org/elasticsearch/xpack/rollup/job
1 file changed
+3
-2
lines changedLines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
400 | | - | |
401 | 400 | | |
402 | 401 | | |
403 | 402 | | |
| |||
413 | 412 | | |
414 | 413 | | |
415 | 414 | | |
416 | | - | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
417 | 418 | | |
418 | 419 | | |
419 | 420 | | |
| |||
0 commit comments