ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Hurley" <jhur...@hortonworks.com>
Subject Review Request 32512: Alert Notifications Are Not Received Without Restarting Ambari Server
Date Wed, 25 Mar 2015 23:41:56 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32512/
-----------------------------------------------------------

Review request for Ambari, Nate Cole and Tom Beerbower.


Bugs: AMBARI-9823
    https://issues.apache.org/jira/browse/AMBARI-9823


Repository: ambari


Description
-------

When creating an alert target and associating it with a group, retrieving the group by alert
definition gets back a group without any targets. The database is correct and restarting Ambari
fixes the problem.

The entities are correctly setup in a bi-directional association. It seems as though without
the refresh cascade, there are cases where a refreshed entity will have stale child entities.


Diffs
-----

  ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertGroupEntity.java
7d2c6c7 
  ambari-server/src/test/java/org/apache/ambari/server/orm/dao/AlertDispatchDAOTest.java a267043


Diff: https://reviews.apache.org/r/32512/diff/


Testing
-------

Manual verification of the fix by:
- Starting Ambari with no targets
- Creating a new target and adding it to a group
- Triggering an alert
- Verifying the target received the alert


Thanks,

Jonathan Hurley


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message