ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vitalyi Brodetskyi" <vbrodets...@hortonworks.com>
Subject Re: Review Request 23731: API call for hosts filtered by host_components/HostRoles/component_name returns 400 error
Date Mon, 21 Jul 2014 14:42:36 GMT

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

(Updated July 21, 2014, 2:42 p.m.)


Review request for Ambari, Dmytro Sen, Nate Cole, and Tom Beerbower.


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


Repository: ambari


Description
-------


When I try to get hosts filtered by host_components/HostRoles/component_name with != clause:

http://host:8080/api/v1/clusters/my_cluster/hosts?host_components/HostRoles/component_name!=HBASE_MASTER

API returns
{ "status": 400, "message": "The properties [host_components/HostRoles/component_name] specified
in the request or predicate are not supported for the resource type Host." }

When I try to get hosts filtered by component with '=' clause:
http://host:8080/api/v1/clusters/my_cluster/hosts?host_components/HostRoles/component_name=HBASE_MASTER


Diffs
-----

  ambari-server/src/main/java/org/apache/ambari/server/api/query/ProcessingPredicateVisitor.java
a9cd46c 
  ambari-server/src/main/java/org/apache/ambari/server/api/query/SubResourcePredicateVisitor.java
5ec2f10 
  ambari-server/src/test/java/org/apache/ambari/server/api/query/ProcessingPredicateVisitorTest.java
393d5f5 
  ambari-server/src/test/java/org/apache/ambari/server/api/query/SubResourcePredicateVisitorTest.java
f6dbdd7 

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


Testing
-------

Results :

Tests run: 1793, Failures: 0, Errors: 0, Skipped: 13


Thanks,

Vitalyi Brodetskyi


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