ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nate Cole" <nc...@hortonworks.com>
Subject Re: Review Request 18881: Cannot stop selected services via API
Date Fri, 07 Mar 2014 12:29:17 GMT

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

Ship it!


Ship It!

- Nate Cole


On March 6, 2014, 7:47 p.m., Tom Beerbower wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/18881/
> -----------------------------------------------------------
> 
> (Updated March 6, 2014, 7:47 p.m.)
> 
> 
> Review request for Ambari, Nate Cole and Sid Wagle.
> 
> 
> Bugs: AMBARI-4981
>     https://issues.apache.org/jira/browse/AMBARI-4981
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> When trying to stop selected services via the API using the "in" clause, the API seems
to stop the last service in the comma-delimited list.
> For example
> 
> curl -i  -uadmin:admin -H 'X-Requested-By: ambari' -X PUT -d '{"ServiceInfo/state":"INSTALLED"}'
'http://localhost:8080/api/v1/clusters/cl1/services?ServiceInfo/service_name.in(YARN,MAPREDUCE2,FALCON,OOZIE,GANGLIA,ZOOKEEPER)'
> 
> creates STOP tasks for ZOOKEEPER only.
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AbstractResourceProvider.java
cec3d1d 
>   ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AbstractResourceProviderTest.java
11adbee 
> 
> Diff: https://reviews.apache.org/r/18881/diff/
> 
> 
> Testing
> -------
> 
> Added new unit test.
> 
> All tests pass :
> 
> Results :
> 
> Tests run: 1481, Failures: 0, Errors: 0, Skipped: 9
> 
> 
> Thanks,
> 
> Tom Beerbower
> 
>


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