You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@ambari.apache.org by Myroslav Papirkovskyy <mp...@hortonworks.com> on 2017/12/15 16:49:42 UTC

Review Request 64652: unable to proceed with cluster install after component install fails.

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

Review request for Ambari, Dmitro Lisnichenko and Jonathan Hurley.


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


Repository: ambari


Description
-------

Unable go back in install wizard if install was finished at one of hosts.

```
Request URL:http://ambari:8080/api/v1/stacks/HDP/versions/2.6/repository_versions/1

{
  "status" : 500,
  "message" : "org.apache.ambari.server.controller.spi.SystemException: Repository version can't be deleted as it is used by the following hosts: CURRENT on sanjay-divgi-test-2.openstacklocal, sanjay-divgi-test-5.openstacklocal, sanjay-divgi-test-1.openstacklocal, sanjay-divgi-test-4.openstacklocal"
}
```


Diffs
-----

  ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostVersionDAO.java 158370f3528f796e30a46862e8eb42882001ca02 
  ambari-server/src/main/java/org/apache/ambari/server/orm/entities/HostVersionEntity.java 4a030af122dbe3ceb3c3592c000b126c864dc626 
  ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java c23b971b85a843433f230b5a94c66ac46c5b1914 
  ambari-server/src/test/java/org/apache/ambari/server/orm/dao/HostVersionDAOTest.java bb077d6667138acdaeaafa8b07f188b2ce3dc2af 


Diff: https://reviews.apache.org/r/64652/diff/1/


Testing
-------

mvn clean test
manual check


Thanks,

Myroslav Papirkovskyy