-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45321/
-----------------------------------------------------------
(Updated March 28, 2016, 11:14 p.m.)
Review request for Ambari, Dmytro Grinenko, Dmitro Lisnichenko, Jonathan
Hurley, and Nate Cole.
Changes
-------
Fixed unit tests and removed getSuspended() method since isSuspended() already
exists.
Bugs: AMBARI-15569
https://issues.apache.org/jira/browse/AMBARI-15569
Repository: ambari
Description
-------
*STR:*
1. Install Ambari 2.2.0
2. Upgrade stack from HDP-2.2.4 to HDP-2.3.2
3. At finalize step, choose downgrade option
4. Introduce failures in some clients such as Zookeeper and Yarn.
In this case, the status of some tasks are marked as ABORTED.
This causes the overall status of the Downgrade to be ABORTED, and hence the UI
shows an incorrect message and button.
Technically, the Downgrade is still progressing, yet the UI shows "Downgrade
paused" and a button to "Resume Downgrade"
This means that the calculations of the stages is incorrect.
Diffs (updated)
-----
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/CalculatedStatus.java
1d8df9b
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UpgradeResourceProvider.java
d43daca
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/UpgradeEntity.java
fd866a1
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/CalculatedStatusTest.java
8d80fa6
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/RequestResourceProviderTest.java
c18a8b6
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/UpgradeResourceProviderTest.java
d37f3ba
Diff: https://reviews.apache.org/r/45321/diff/
Testing
-------
Verified on live cluster and ran unit tests in CalculateStatusTest.java
Thanks,
Alejandro Fernandez