Skip to content
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

Fix ordering of metric rollups in consumption history #17620

Conversation

lpichler
Copy link
Contributor

@lpichler lpichler commented Jun 21, 2018

this is fixing sporadic failures caused by #17592

the issue is that we got improper count of hours of Consumption#consumed_hours_in_interval
it was caused that set of metric rollups (after pluck) is not ordered according to timestamp.
Then we could not get proper first metric rollup according to timestamp and then we were badly calculating consumed_hours_in_interval here.

Links

https://travis-ci.org/ManageIQ/manageiq/jobs/393976777
https://bugzilla.redhat.com/show_bug.cgi?id=1601590

@miq-bot assign @gtanzillo
@miq-bot add_label gaprindashvili/yes, sporadic failure/test

@miq-bot
Copy link
Member

miq-bot commented Jun 21, 2018

@lpichler Cannot apply the following label because they are not recognized: sporadic failure/test

the issue is that we got improper count of hours of
Consumption#consumed_hours_in_interval it was caused
that set of metric rollups (after pluck) is not ordered
according to timestamp. Then we could not get proper
first metric rollup according to timestamp and then
we were badly calculating consumed_hours_in_interval here.
@lpichler lpichler force-pushed the fix_ordering_metric_rollups_in_consumption_history branch from 463cc96 to 85da8cd Compare June 21, 2018 08:26
@miq-bot
Copy link
Member

miq-bot commented Jun 21, 2018

Checked commit lpichler@85da8cd with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 🏆

Copy link
Member

@gtanzillo gtanzillo left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@gtanzillo gtanzillo added this to the Sprint 89 Ending Jul 2, 2018 milestone Jun 27, 2018
@gtanzillo gtanzillo merged commit d35b051 into ManageIQ:master Jun 27, 2018
@lpichler lpichler deleted the fix_ordering_metric_rollups_in_consumption_history branch June 27, 2018 13:24
@lpichler
Copy link
Contributor Author

lpichler commented Aug 9, 2018

@miq-bot add_label blocker

@miq-bot miq-bot added the blocker label Aug 9, 2018
@simaishi
Copy link
Contributor

simaishi commented Oct 3, 2018

As per BZ Target Release, removing gaprindashvili/yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants