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:16 UTC

[skywalking] branch log-query created (now d374fea)

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

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


      at d374fea  Fix wrong query condition

This branch includes the following new commits:

     new d374fea  Fix wrong query condition

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[skywalking] 01/01: Fix wrong query condition

Posted by wu...@apache.org.
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)));
         }