You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ao...@apache.org on 2021/02/24 09:26:35 UTC

[ambari] 03/03: AMBARI-25621. Ambari soft alert never become hard. (dvitiuk)

This is an automated email from the ASF dual-hosted git repository.

aonishuk pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/ambari.git

commit e4152124c0fd3b7a8f4fde83b1645e9cd812ceb3
Author: Dmytro Vitiuk <dm...@cloudera.com>
AuthorDate: Wed Feb 24 00:52:42 2021 +0200

    AMBARI-25621. Ambari soft alert never become hard. (dvitiuk)
---
 ambari-agent/src/main/python/ambari_agent/AlertStatusReporter.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ambari-agent/src/main/python/ambari_agent/AlertStatusReporter.py b/ambari-agent/src/main/python/ambari_agent/AlertStatusReporter.py
index 7a9f337..c512ff2 100644
--- a/ambari-agent/src/main/python/ambari_agent/AlertStatusReporter.py
+++ b/ambari-agent/src/main/python/ambari_agent/AlertStatusReporter.py
@@ -114,7 +114,7 @@ class AlertStatusReporter(threading.Thread):
         elif self.alert_repeats[cluster_id][alert_name] < alert_tolerance and alert_state != 'OK':
           changed_alerts.append(alert)
       else:
-        logger.warn("An alert '{0}' was appeared with state '{1}' for not-existing alert definition."
+        logger.warn("Cannot find alert definition for alert='{0}', alert_state='{1}'."
                     .format(alert_name, alert_state))
 
     return changed_alerts