Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 10, 2019

Conversation

cbuescher
Copy link
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
Collaborator

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

Copy link
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
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
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