ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shantanu Mundkur" <ant...@gmail.com>
Subject Review Request 40527: AMBARI-11825: Failure to add or install component defined with cardinality ALL
Date Fri, 20 Nov 2015 07:11:35 GMT

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

Review request for Ambari and Jaimin Jetly.


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


Repository: ambari


Description
-------

A MASTER, SLAVE or CLIENT component defined with a cardinality of ALL results in a failure
while adding the service, upon clicking Deploy, with an error like:

org.apache.ambari.server.controller.spi.ResourceAlreadyExistsException: Attempted to create
host_component's which already exist: [clusterName=CLUSTER1, hostName=node1.domain.com, componentName=MYSERVICE_MASTER],[clusterName=CLUSTER1,
hostName=node1.domain.com, componentName=MYSERVICE_MASTER]

or

org.apache.ambari.server.controller.spi.ResourceAlreadyExistsException: Attempted to create
a host_component which already exists: [clusterName=CLUSTER2, hostName=node10.domain.com,
componentName=MYSERVICE_SLAVE]


Diffs
-----

  ambari-web/app/controllers/wizard/step8_controller.js 5c4baa3 
  ambari-web/test/controllers/wizard/step8_test.js 9331db5 

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


Testing
-------

(1) "mvn clean test" under ambari-web
   
  Results:
  10388 tests complete (16 seconds)
  115 tests pending

(2) Test sin (1) included new test-cases that were added for the Jira.

(3) Manually tested different scenarios using a custom service with MASTER, SLAVE and CLIENT
components using different combinations of cardinality and using ALL for the defined components.


Thanks,

Shantanu Mundkur


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