ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jonathanhur...@apache.org
Subject ambari git commit: AMBARI-9823 - Alert Notifications Are Not Received Without Restarting Ambari Server (part3) (jonathanhurley)
Date Wed, 06 May 2015 14:58:14 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.0.maint 8872e5581 -> 6df463193


AMBARI-9823 - Alert Notifications Are Not Received Without Restarting Ambari Server (part3)
(jonathanhurley)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/6df46319
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/6df46319
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/6df46319

Branch: refs/heads/branch-2.0.maint
Commit: 6df463193bf9007d2b7c7d8741f8d08e0f4d93ce
Parents: 8872e55
Author: Jonathan Hurley <jhurley@hortonworks.com>
Authored: Wed May 6 10:57:57 2015 -0400
Committer: Jonathan Hurley <jhurley@hortonworks.com>
Committed: Wed May 6 10:57:57 2015 -0400

----------------------------------------------------------------------
 .../java/org/apache/ambari/server/orm/dao/AlertDispatchDAO.java   | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/6df46319/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertDispatchDAO.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertDispatchDAO.java
b/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertDispatchDAO.java
index d355d3d..85973b1 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertDispatchDAO.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertDispatchDAO.java
@@ -45,6 +45,8 @@ import org.apache.ambari.server.state.Cluster;
 import org.apache.ambari.server.state.Clusters;
 import org.apache.ambari.server.state.NotificationState;
 import org.apache.ambari.server.state.Service;
+import org.eclipse.persistence.config.HintValues;
+import org.eclipse.persistence.config.QueryHints;
 
 import com.google.inject.Inject;
 import com.google.inject.Provider;
@@ -301,6 +303,7 @@ public class AlertDispatchDAO {
         "AlertGroupEntity.findByAssociatedDefinition", AlertGroupEntity.class);
 
     query.setParameter("alertDefinition", definitionEntity);
+    query.setHint(QueryHints.REFRESH, HintValues.TRUE);
 
     return daoUtils.selectList(query);
   }


Mime
View raw message