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

Review request for Ambari, Dmytro Grinenko, Dmitro Lisnichenko, and Nate Cole.


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


Repository: ambari


Description
-------

Components can become {{OUT_OF_SYNC}} before and after stack upgrades. As a 
result, this can affect the success of future upgrade attempts. It seems wrong 
to expose a direct way to alter this state since it's calculated from the 
agents.

- The logic currently for reporting component versions is as follows:
-- On an agent's initial heartbeat registration, status commands will report 
component versions. Subsequent status commands will not.
-- On any START/STOP/RESTART, the component will report a version

This means that if a host is {{OUT_OF_SYNC}} there are two ways to 
automatically fix it (assuming the cluster is properly upgraded)
- Restart the agent on that host
- Restart the components which are {{OUT_OF_SYNC}} on that host

It would be good to notify the cluster administrator that there is a problem 
with the reported version of the components.


Diffs
-----

  
ambari-server/src/main/java/org/apache/ambari/server/alerts/AlertRunnable.java 
ea583e4 
  
ambari-server/src/main/java/org/apache/ambari/server/alerts/ComponentVersionAlertRunnable.java
 PRE-CREATION 
  ambari-server/src/main/resources/alerts.json d646401 
  
ambari-server/src/test/java/org/apache/ambari/server/alerts/ComponentVersionAlertRunnableTest.java
 PRE-CREATION 


Diff: https://reviews.apache.org/r/58723/diff/1/


Testing
-------

PENDING...


Thanks,

Jonathan Hurley

Reply via email to