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

swagle pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 6d1dc6c  AMBARI-22891 : Logging improvement during the Upgrade when 
there is invalid Alert definition
6d1dc6c is described below

commit 6d1dc6c4e5baa5b8044806ef0c29f6d15050d70e
Author: root <r...@apappudb.hdp.com>
AuthorDate: Tue Feb 6 16:04:02 2018 -0800

    AMBARI-22891 : Logging improvement during the Upgrade when there is invalid 
Alert definition
---
 .../org/apache/ambari/server/state/alert/AlertDefinitionFactory.java     | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/ambari-server/src/main/java/org/apache/ambari/server/state/alert/AlertDefinitionFactory.java
 
b/ambari-server/src/main/java/org/apache/ambari/server/state/alert/AlertDefinitionFactory.java
index ecf025f..c7acd54 100644
--- 
a/ambari-server/src/main/java/org/apache/ambari/server/state/alert/AlertDefinitionFactory.java
+++ 
b/ambari-server/src/main/java/org/apache/ambari/server/state/alert/AlertDefinitionFactory.java
@@ -196,6 +196,7 @@ public class AlertDefinitionFactory {
       Source source = m_gson.fromJson(sourceJson, Source.class);
       definition.setSource(source);
     } catch (Exception exception) {
+      LOG.error("Alert defintion is invalid for  Id : " + 
entity.getDefinitionId() + " Name: "+  entity.getDefinitionName() );
       LOG.error(
           "Unable to deserialize the alert definition source during coercion",
           exception);

-- 
To stop receiving notification emails like this one, please contact
swa...@apache.org.

Reply via email to