You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sw...@apache.org on 2018/02/06 00:10:42 UTC

[ambari] branch branch-2.6 updated: AMBARI-22891 : Logging improvement during the Upgrade when there is invalid Alert definition

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

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


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

commit be34314a4c60cf04e595a35ff790445f27e49679
Author: root <ro...@apappudb.hdp.com>
AuthorDate: Mon Feb 5 15:33:17 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 769920f..fb5d018 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
swagle@apache.org.