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

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

Reply via email to