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

pengys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking.git


The following commit(s) were added to refs/heads/master by this push:
     new dbb8bd8  Fix wrong query condition (#2858)
dbb8bd8 is described below

commit dbb8bd8a7fcd6efb079bd530628bbb8a62266d52
Author: 吴晟 Wu Sheng <[email protected]>
AuthorDate: Wed Jun 12 17:17:15 2019 +0800

    Fix wrong query condition (#2858)
---
 .../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)));
         }
 

Reply via email to