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

AMBARI-23932 - Ambari Metrics reports incorrect values in aggregated host metric data when requesting avg. #1356

Merged
merged 1 commit into from
May 24, 2018

Conversation

avijayanhwx
Copy link

What changes were proposed in this pull request?

Fix regression introduced from AMBARI-23008.

How was this patch tested?

mvn clean install.
Manually verified known metric aggregate values on 2.6.2 and 2.7.0 clusters.

}

private boolean isEventDownsampledMetric(String metricName) {
for (String pattern : eventMetricPatterns) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this not be made a lookup instead of a match every time?

Copy link
Author

Choose a reason for hiding this comment

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

It cannot be a simple metric name lookup since the number of metrics that could be 'event' type can be unbounded, and holding a Set of metric names may become costly.

@asfgit
Copy link

asfgit commented May 22, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/2419/
Test PASSed.

@avijayanhwx avijayanhwx merged commit b93bee5 into apache:trunk May 24, 2018
@avijayanhwx avijayanhwx deleted the AMBARI-23932-trunk branch August 7, 2018 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants