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/25 06:32:18 UTC

[skywalking] branch query-bug created (now 133cd7b)

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

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


      at 133cd7b  Fix lose query data bug.

This branch includes the following new commits:

     new 133cd7b  Fix lose query data bug.

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 lose query data bug.

Posted by wu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 133cd7be094967ecec1eb641972f0b4745829903
Author: Wu Sheng <wu...@foxmail.com>
AuthorDate: Tue Jun 25 14:32:05 2019 +0800

    Fix lose query data bug.
---
 .../oap/server/library/client/elasticsearch/ElasticSearchClient.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/oap-server/server-library/library-client/src/main/java/org/apache/skywalking/oap/server/library/client/elasticsearch/ElasticSearchClient.java b/oap-server/server-library/library-client/src/main/java/org/apache/skywalking/oap/server/library/client/elasticsearch/ElasticSearchClient.java
index 3e79db3..47f0e40 100644
--- a/oap-server/server-library/library-client/src/main/java/org/apache/skywalking/oap/server/library/client/elasticsearch/ElasticSearchClient.java
+++ b/oap-server/server-library/library-client/src/main/java/org/apache/skywalking/oap/server/library/client/elasticsearch/ElasticSearchClient.java
@@ -232,7 +232,7 @@ public class ElasticSearchClient implements Client {
 
         SearchRequest searchRequest = new SearchRequest(indexName);
         searchRequest.types(TYPE);
-        searchRequest.source().query(QueryBuilders.idsQuery().addIds(ids));
+        searchRequest.source().query(QueryBuilders.idsQuery().addIds(ids)).size(ids.length);
         SearchResponse response = client.search(searchRequest);
 
         Map<String, Map<String, Object>> result = new HashMap<>();