----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/32512/#review77894 -----------------------------------------------------------
Ship it! Ship It! - Nate Cole On March 25, 2015, 7:41 p.m., Jonathan Hurley wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/32512/ > ----------------------------------------------------------- > > (Updated March 25, 2015, 7:41 p.m.) > > > 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 > >
