> On March 30, 2016, 9:13 p.m., Alejandro Fernandez wrote: > > ambari-server/src/main/java/org/apache/ambari/server/events/listeners/alerts/AlertReceivedListener.java, > > line 403 > > <https://reviews.apache.org/r/45442/diff/1/?file=1318274#file1318274line403> > > > > This will acquire a read lock every time. If performance suffers, > > perhaps we can relax that constraint a bit since alerts have a bit more > > leeway
I'm fine relaxing this a bit. In fact, I think we're negating the benefits of the ConcurrentHashMap here. - Jonathan ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/45442/#review126231 ----------------------------------------------------------- On March 29, 2016, 3:32 p.m., Jonathan Hurley wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/45442/ > ----------------------------------------------------------- > > (Updated March 29, 2016, 3:32 p.m.) > > > Review request for Ambari, Alejandro Fernandez, Dmitro Lisnichenko, and Nate > Cole. > > > Bugs: AMBARI-15620 > https://issues.apache.org/jira/browse/AMBARI-15620 > > > Repository: ambari > > > Description > ------- > > Host-level alerts from {{AMBARI}}/{{AMBARI_AGENT}} are orphaned after > removing a host because they are always considered valid. > > STR > - Deploy cluster > - Add/Remove nodes a few times > - Removed all aded nodes > > {code} > There are 4 stale alerts from 4 host(s): > amb-roll-workflow1458640758-5.novalocal[Host Disk Usage (3h 52m)], > amb-roll-workflow1458640758-2.novalocal[Host Disk Usage (3h 52m)], > amb-roll-workflow1458640758-3.novalocal[Host Disk Usage (3h 52m)], > amb-roll-workflow1458640758-4.novalocal[Host Disk Usage (3h 52m)] > {code} > > > Diffs > ----- > > > ambari-server/src/main/java/org/apache/ambari/server/events/listeners/alerts/AlertReceivedListener.java > 8dc8e1e > ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostDAO.java > ebd29e3 > ambari-server/src/main/java/org/apache/ambari/server/state/Clusters.java > a1ebaba > > ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClustersImpl.java > 6c68d0e > > ambari-server/src/test/java/org/apache/ambari/server/state/alerts/AlertReceivedListenerTest.java > 136a756 > > Diff: https://reviews.apache.org/r/45442/diff/ > > > Testing > ------- > > mvn clean test > > > Thanks, > > Jonathan Hurley > >