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

Review request for Ambari, Alejandro Fernandez, Jayush Luniya, and Nate Cole.


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


Repository: ambari


Description
-------

Although the upgrade endpoint can be used to marked failures as being 
automatically skipped:

{code:title=POST api/v1/clusters/c1/upgrades}
{
  "Upgrade": {
    "repository_version": "2.3.0.0-2545",
    "skip_failures": true
  }
}
{code}

This currently does not work on upgrades already in progress. The API should 
allow an upgrade in progress to have its stages altered so that they will 
automatically skip failures. This would be a PUT command:

{code:title=PUT api/v1/clusters/c1/upgrades/1}
{
  "Upgrade": {
    "skip_failures": true
  }
}
{code}


Diffs
-----

  
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UpgradeResourceProvider.java
 82ce49f 
  
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostRoleCommandDAO.java
 70e2940 
  
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/HostRoleCommandEntity.java
 e0662fb 
  
ambari-server/src/test/java/org/apache/ambari/server/orm/dao/HostRoleCommandDAOTest.java
 1fded28 

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


Testing
-------

mvn clean test


Thanks,

Jonathan Hurley

Reply via email to