Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9B39A18B68 for ; Fri, 12 Feb 2016 10:28:18 +0000 (UTC) Received: (qmail 19395 invoked by uid 500); 12 Feb 2016 10:28:18 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 19313 invoked by uid 500); 12 Feb 2016 10:28:18 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 19237 invoked by uid 99); 12 Feb 2016 10:28:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Feb 2016 10:28:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 157F32C1F57 for ; Fri, 12 Feb 2016 10:28:18 +0000 (UTC) Date: Fri, 12 Feb 2016 10:28:18 +0000 (UTC) From: "Oleg Nechiporenko (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-15025) Hosts page: Filtering works incorrectly with multiple filters applied MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-15025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15144376#comment-15144376 ] Oleg Nechiporenko commented on AMBARI-15025: -------------------------------------------- Patches for trunk and 2.2 are added. > Hosts page: Filtering works incorrectly with multiple filters applied > --------------------------------------------------------------------- > > Key: AMBARI-15025 > URL: https://issues.apache.org/jira/browse/AMBARI-15025 > Project: Ambari > Issue Type: Bug > Components: ambari-web > Affects Versions: 2.2.2 > Reporter: Oleg Nechiporenko > Assignee: Oleg Nechiporenko > Priority: Critical > Fix For: 2.2.2 > > Attachments: AMBARI-15025.patch, AMBARI-15025_branch-2.2.patch > > > On 1200 node cluster I enabled filter for alerts and then put in a hostname filter... which showed hosts that did not match the filter. (video attached). > POST request: > URL: > {code:java} > /api/v1/clusters/perf/hosts?fields=Hosts/rack_info,Hosts/host_name,Hosts/maintenance_state,Hosts/public_host_name,Hosts/cpu_count,Hosts/ph_cpu_count,alerts_summary,Hosts/host_status,Hosts/last_heartbeat_time,Hosts/ip,host_components/HostRoles/state,host_components/HostRoles/maintenance_state,host_components/HostRoles/stale_configs,host_components/HostRoles/service_name,host_components/HostRoles/desired_admin_state,Hosts/total_mem,stack_versions/HostStackVersions,stack_versions/repository_versions/RepositoryVersions/repository_version,stack_versions/repository_versions/RepositoryVersions/id,stack_versions/repository_versions/RepositoryVersions/display_name&minimal_response=true&page_size=10&from=0&sortBy=Hosts/host_name.as > {code} > Data: > {code:java} > {"RequestInfo":{"query":"page_size=10&from=0&alerts_summary/CRITICAL>0|alerts_summary/WARNING>0&Hosts/host_name.matches(.*23.*)"}} > {code} > Response: > {code:java} > { > "itemTotal" : "308", > "items" : [ > { > "Hosts" : { > "cpu_count" : 4, > "host_name" : "perf-b-1.c.pramod-thangali.internal", > "host_status" : "HEALTHY", > "ip" : "10.240.0.4", > "last_heartbeat_time" : 1455013064276, > "maintenance_state" : "OFF", > "ph_cpu_count" : 4, > "public_host_name" : "perf-b-1.c.pramod-thangali.internal", > "rack_info" : "/default-rack", > "total_mem" : 15301028 > }... > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)