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

Review request for Ambari and Dmitro Lisnichenko.


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


Repository: ambari


Description
-------

**Steps to reproduce:**  
1\. Change any of the parameters that hamper the ambari-server to restart
successfully.(password.dat file)  
2\. Restart ambari-server, ambari-server restart will fail saying (This is
expected as we have changed the parameter.)

    
    
    
    Unable to determine server PID. Retrying...
    DB configs consistency check: no errors and warnings were found.
    ERROR: Exiting with exit code -1. 
    

3\. Now set the Parameter to its actual value.  
4.Restart ambari-server, ambari-server restart will fail saying

    
    
    
    Using python  /usr/bin/python
    Restarting ambari-server
    WARNING: '' is incorrect PID value. 
/var/run/ambari-server/ambari-server.pid is corrupt. Removing
    Ambari Server 'restart' completed with warnings.
    

5.If you Restart the Ambari server again. It gets restarted successfully.


Diffs
-----

  ambari-server/src/main/python/ambari_server/utils.py 62c93ae 

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


Testing
-------

mvn clean test


Thanks,

Andrew Onischuk

Reply via email to