You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2019/06/12 05:34:17 UTC

[skywalking] 01/01: Fix wrong query condition

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

wusheng pushed a commit to branch log-query
in repository https://gitbox.apache.org/repos/asf/skywalking.git

commit d374feaeaaddcfae4e3b9a095aefd1b7ce38bbec
Author: Wu Sheng <wu...@foxmail.com>
AuthorDate: Wed Jun 12 13:34:02 2019 +0800

    Fix wrong query condition
---
 .../oap/server/storage/plugin/elasticsearch/query/LogQueryEsDAO.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/oap-server/server-storage-plugin/storage-elasticsearch-plugin/src/main/java/org/apache/skywalking/oap/server/storage/plugin/elasticsearch/query/LogQueryEsDAO.java b/oap-server/server-storage-plugin/storage-elasticsearch-plugin/src/main/java/org/apache/skywalking/oap/server/storage/plugin/elasticsearch/query/LogQueryEsDAO.java
index c4b0355..83dd3ca 100644
--- a/oap-server/server-storage-plugin/storage-elasticsearch-plugin/src/main/java/org/apache/skywalking/oap/server/storage/plugin/elasticsearch/query/LogQueryEsDAO.java
+++ b/oap-server/server-storage-plugin/storage-elasticsearch-plugin/src/main/java/org/apache/skywalking/oap/server/storage/plugin/elasticsearch/query/LogQueryEsDAO.java
@@ -75,7 +75,7 @@ public class LogQueryEsDAO extends EsDAO implements ILogQueryDAO {
         }
         if (LogState.ERROR.equals(state)) {
             boolQueryBuilder.must().add(QueryBuilders.termQuery(AbstractLogRecord.IS_ERROR, BooleanUtils.booleanToValue(true)));
-        } else if (LogState.ERROR.equals(state)) {
+        } else if (LogState.SUCCESS.equals(state)) {
             boolQueryBuilder.must().add(QueryBuilders.termQuery(AbstractLogRecord.IS_ERROR, BooleanUtils.booleanToValue(false)));
         }