forked from yugabyte/yugabyte-db
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PLAT-1613] Platform: Alerts: Logs filled with NPE related to "Error …
…while sending notification for alert " Summary: - Fixed possible NPE exceptions in logs related to notifications. Test Plan: To check that for a new customer (without alerting configuration) there is no NullPointerExceptions in the platform logs with the next stack: 2021-08-30 22:44:55.515 [error] AlertManager.java:135 [application-akka.actor.default-dispatcher-7] Error while sending notification for alert 064b7bce-a92a-4465-8d4a-fa157b7e2f71 java.lang.NullPointerException: null at com.yugabyte.yw.common.EmailHelper.getDestinations(EmailHelper.java:197) at com.yugabyte.yw.common.AlertManager.sendNotification(AlertManager.java:206) at com.yugabyte.yw.common.AlertManager.sendNotificationForState(AlertManager.java:108) ... Reviewers: sb-yb, amalyshev Reviewed By: amalyshev Subscribers: yugaware, jenkins-bot Differential Revision: https://phabricator.dev.yugabyte.com/D12815
- Loading branch information
1 parent
e130615
commit 71a8de2
Showing
4 changed files
with
55 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters