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-23057] Upgrade fails because of Stale alert definitions (apappu) #2885

Merged
merged 5 commits into from
Apr 3, 2019

Conversation

apappu
Copy link
Contributor

@apappu apappu commented Mar 22, 2019

What changes were proposed in this pull request?

Have added DB consistency check to remove those stale alert definitions before even Upgrade started.
(Please fill in changes proposed in this fix)

(Please fill in changes proposed in this fix)

How was this patch tested?

Have tested in live ambari server with stale alert and without stale and it works fine. pls check the log below.
2019-03-22 22:17:50,835 INFO - Checking to ensure there is no stale alert definitions
2019-03-22 22:17:50,837 WARN - You have Alerts that are not mapped with any services : yarn_nodemanager_webui_percent(YARN1)
(Please explain how this patch was tested. Ex: unit tests, manual tests)
(If this patch involves UI changes, please attach a screen-shot; otherwise, remove this)
2. Running autofix has removed those stale alerts and references. here is the sample log.

2019-03-27 18:50:27,842 INFO - fixAlertsForDeletedServices stale alert definitions for deleted services
2019-03-27 18:50:27,967 WARN - fixAlertsForDeletedServices - 2 alerts were deleted

Please review Ambari Contributing Guide before opening a pull request.

@asfgit
Copy link

asfgit commented Mar 22, 2019

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

@apappu
Copy link
Contributor Author

apappu commented Mar 26, 2019

@swagle Could you please review this code change?

@asfgit
Copy link

asfgit commented Mar 27, 2019

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

@asfgit
Copy link

asfgit commented Mar 27, 2019

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

@swagle
Copy link
Contributor

swagle commented Mar 27, 2019

Changes look good @apappu, can you please add a unit test? Sorry missed this earlier.

@asfgit
Copy link

asfgit commented Mar 27, 2019

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

@asfgit
Copy link

asfgit commented Apr 2, 2019

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

@apappu
Copy link
Contributor Author

apappu commented Apr 3, 2019

looks like these errors are not related to my changes.

Copy link
Contributor

@swagle swagle left a comment

Choose a reason for hiding this comment

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

+1 LGTM

@swagle swagle merged commit ef51fd9 into apache:branch-2.7 Apr 3, 2019
payert pushed a commit to payert/ambari that referenced this pull request Apr 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants