Skip to content

Ensure random timestamps are within search boundary (#38753)#47787

Merged
cbuescher merged 1 commit intoelastic:7.xfrom
cbuescher:backport-38753
Oct 10, 2019
Merged

Ensure random timestamps are within search boundary (#38753)#47787
cbuescher merged 1 commit intoelastic:7.xfrom
cbuescher:backport-38753

Conversation

@cbuescher
Copy link
Copy Markdown
Member

Backport of #38753 to 7.x where the test is still mutes, I thinkt it was just forgotten.

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.

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 elastic#34762

"Forward-port" of 368c6f2 (wasn't
merged into master for some reason)
@cbuescher cbuescher added >test Issues or PRs that are addressing/adding tests :StorageEngine/Rollup Turn fine-grained time-based data into coarser-grained data backport v7.5.0 labels Oct 9, 2019
@cbuescher cbuescher requested a review from polyfractal October 9, 2019 11:32
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-analytics-geo (:Analytics/Rollup)

Copy link
Copy Markdown
Contributor

@polyfractal polyfractal left a comment

Choose a reason for hiding this comment

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

Oops, yes, I think this was just a forgotten backport. Thanks!

@polyfractal
Copy link
Copy Markdown
Contributor

Ah right, there was a mixup at the time when things were merged. It merged into 6.x, but somehow master was forgotten. I think when it was noticed and merged to master, 7.x had been cut and I didn't notice/think about it...so the fix was in 6.x and master but not 7.x. :(

@cbuescher cbuescher merged commit f07de06 into elastic:7.x Oct 10, 2019
@cbuescher cbuescher deleted the backport-38753 branch November 27, 2025 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :StorageEngine/Rollup Turn fine-grained time-based data into coarser-grained data >test Issues or PRs that are addressing/adding tests v7.5.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants