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

Review request for Ambari, Daniel Gergely, Oliver Szabo, Robert Nettleton, and 
Sandor Magyari.


Repository: ambari


Description
-------

Problem:
In case services / components are restarted, their desired states are not 
changed. As during restart -per definition- services are expected to be in 
STARTED state this should be OK, however if the restart is triggered for 
services in STOPPED state this causes problems (The UI allows triggering 
restart for stopped services). (Eg.: recovery manager doesn't bring them back 
to running state)

Solution:
When assembling the RESTART custom command desired states of affected services 
are updated to STARTED.


Diffs
-----

  
ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariCustomCommandExecutionHelper.java
 b60592d 

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


Testing
-------

Manually tested on dev-env.
Unit tests running.


Thanks,

Laszlo Puskas

Reply via email to