You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ol...@apache.org on 2018/05/07 20:49:11 UTC

[ambari] branch trunk updated: AMBARI-23782. Log Search: Cluster filter is not working on a few endpoints. (#1198)

This is an automated email from the ASF dual-hosted git repository.

oleewere pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new c4a125d  AMBARI-23782. Log Search: Cluster filter is not working on a few endpoints. (#1198)
c4a125d is described below

commit c4a125d645431bcfdabf7960cbe9e0d1736d3166
Author: Olivér Szabó <ol...@gmail.com>
AuthorDate: Mon May 7 22:49:08 2018 +0200

    AMBARI-23782. Log Search: Cluster filter is not working on a few endpoints. (#1198)
---
 .../java/org/apache/ambari/logsearch/manager/ServiceLogsManager.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/manager/ServiceLogsManager.java b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/manager/ServiceLogsManager.java
index d022b4d..fa8e929 100644
--- a/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/manager/ServiceLogsManager.java
+++ b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/manager/ServiceLogsManager.java
@@ -181,7 +181,7 @@ public class ServiceLogsManager extends ManagerBase<ServiceLogData, ServiceLogRe
 
   public CountDataListResponse getFieldCount(String field, String clusters) {
     SimpleFacetQuery facetQuery = conversionService.convert(field, SimpleFacetQuery.class);
-    if (StringUtils.isEmpty(clusters)) {
+    if (StringUtils.isNotEmpty(clusters)) {
       List<String> clusterFilterList = Splitter.on(",").splitToList(clusters);
       facetQuery.addFilterQuery(new SimpleFilterQuery(new Criteria(CLUSTER).in(clusterFilterList)));
     }

-- 
To stop receiving notification emails like this one, please contact
oleewere@apache.org.