-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/58969/
-----------------------------------------------------------
(Updated May 3, 2017, 5:46 p.m.)
Review request for Ambari, Alejandro Fernandez, Eugene Chekanskiy, and Nate
Cole.
Changes
-------
Added unit test
Bugs: AMBARI-20924
https://issues.apache.org/jira/browse/AMBARI-20924
Repository: ambari
Description
-------
Possibly caused by AMBARI-20750:
Upgrades are failing because of a {{VERSION_MISMATCH}} between all components
of the upgrade. Initially, on restart, the version comes back correct and the
host component transitions into {{COMPLETED}}.
However, the following status command returns the old version, forcing the
component back into the {{VERSION_MISMATCH}} state.
What's odd is that no status commands should be returning the component
version. It seems like what's happening is that
{{/var/lib/ambari-agent/data/structured-out-status.json}} is being read even if
the status command did not update the file.
Diffs (updated)
-----
ambari-agent/src/test/python/resource_management/TestScript.py 65f8c2d
ambari-common/src/main/python/resource_management/libraries/script/script.py
dc657fb
ambari-server/src/test/python/unitTests.py a8e72e9
Diff: https://reviews.apache.org/r/58969/diff/2/
Changes: https://reviews.apache.org/r/58969/diff/1-2/
Testing (updated)
-------
----------------------------------------------------------------------
Total run:1170
Total errors:0
Total failures:0
OK
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:05 min
[INFO] Finished at: 2017-05-03T17:45:26-04:00
[INFO] Final Memory: 17M/245M
[INFO] ------------------------------------------------------------------------
Thanks,
Jonathan Hurley