Andrii Tkach created AMBARI-6308:
------------------------------------
Summary: 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
/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)