ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yurii Shylov" <yurii.shy...@gmail.com>
Subject Re: Review Request 30179: Cannot delete registered-version with invalid repo URLs
Date Tue, 27 Jan 2015 18:49:27 GMT

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

(Updated Янв. 27, 2015, 6:49 п.п.)


Review request for Ambari, Alejandro Fernandez, Dmitro Lisnichenko, and Nate Cole.


Changes
-------

Remerged together with dependent issue


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


Repository: ambari


Description
-------

I registered a repo-version with URLs that have no repo
# http://apache.org
# http://apache.org

Then I attempted to install - which failed. Then when I attempt to deregister the version,
hit the following response
{code}
DELETE http://c6401:8080/api/v1/stacks/HDP/versions/2.2/repository_versions/3

{
  "status" : 500,
  "message" : "org.apache.ambari.server.controller.spi.SystemException: Repository version
can't be deleted as it is INSTALL_FAILED on cluster c1"
}
{code}


Diffs (updated)
-----

  ambari-server/src/main/java/org/apache/ambari/server/controller/internal/RepositoryVersionResourceProvider.java
5422bdf 
  ambari-server/src/test/java/org/apache/ambari/server/controller/internal/RepositoryVersionResourceProviderTest.java
3516ffe 

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


Testing
-------

Tests ok


Thanks,

Yurii Shylov


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message