You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Andrii Tkach (JIRA)" <ji...@apache.org> on 2014/06/27 17:47:24 UTC
[jira] [Updated] (AMBARI-6308) API: filtering by hostname does not
work properly
[ https://issues.apache.org/jira/browse/AMBARI-6308?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrii Tkach updated AMBARI-6308:
---------------------------------
Attachment: AMBARI-6308_branch-1.6.1.patch
AMBARI-6308.patch
> API: filtering by hostname does not work properly
> -------------------------------------------------
>
> Key: AMBARI-6308
> URL: https://issues.apache.org/jira/browse/AMBARI-6308
> Project: Ambari
> Issue Type: Bug
> Components: client
> Affects Versions: 1.6.1
> Reporter: Andrii Tkach
> Assignee: Andrii Tkach
> Priority: Critical
> Fix For: 1.6.1
>
> Attachments: AMBARI-6308.patch, AMBARI-6308_branch-1.6.1.patch
>
>
> /api/v1/clusters/c1/hosts?page_size=25&from=10&Hosts/host_name.matches(.*1002.*)&fields=Hosts/host_name,Hosts/maintenance_state,Hosts/public_host_name,Hosts/cpu_count,Hosts/ph_cpu_count,Hosts/total_mem,Hosts/host_status,Hosts/last_heartbeat_time,Hosts/os_arch,Hosts/os_type,Hosts/ip,host_components/HostRoles/state,host_components/HostRoles/maintenance_state,host_components/HostRoles/stale_configs,host_components/HostRoles/service_name,metrics/disk,metrics/load/load_one,metrics/cpu/cpu_system,metrics/cpu/cpu_user,metrics/memory/mem_total,metrics/memory/mem_free,alerts/summary&minimal_response=true
> The above should have given one matching host.
> The API response was:
> {noformat}
> {
> "itemTotal" : "1",
> "items" : [ ]
> }
> {noformat}
> The total count is correct, but the response was empty.
> Also, this call took more than 40 seconds on the 2k-node cluster.
--
This message was sent by Atlassian JIRA
(v6.2#6252)