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-25963: Metrics metadata sync problem, accessing metrics which got created though other collector throws NPE #119

Merged
merged 1 commit into from
Jul 28, 2023

Conversation

arshadmohammad
Copy link
Contributor

What changes were proposed in this pull request?

When metrics are synced from other collectors, update the uuid metrics metadata map as well.

How was this patch tested?

Tested the scenario mentioned the jira before and after the fix. Fix was verified by applying the changes on existing cluster

Please review Ambari Contributing Guide before opening a pull request.

Copy link

@virajjasani virajjasani left a comment

Choose a reason for hiding this comment

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

is it possible to write a UT? otherwise changes look good

@arshadmohammad
Copy link
Contributor Author

is it possible to write a UT? otherwise changes look good

Thanks @virajjasani for review. Added validation for this issue scenario in an existing test case TestMetadataSync#testRefreshMetadataOnWrite

@brahmareddybattula
Copy link

@arshadmohammad thanks reporting, Can you squash the commit so that jira number will reflect..? And can you raise for branch-2.7 also.

…got created though other collector throws NPE
@arshadmohammad
Copy link
Contributor Author

arshadmohammad commented Jul 12, 2023

Can you squash the commit so that jira number will reflect..? And can you raise for branch-2.7 also.

squashed the commits, raised PR for branch-2.7

@brahmareddybattula
Copy link

+1.

@brahmareddybattula brahmareddybattula merged commit 4bf5b28 into apache:master Jul 28, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants