You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ke...@apache.org on 2022/05/17 04:14:05 UTC

[skywalking] branch fix/no-indices created (now 6255c1e9ce)

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

kezhenxu94 pushed a change to branch fix/no-indices
in repository https://gitbox.apache.org/repos/asf/skywalking.git


      at 6255c1e9ce Storage(ElasticSearch): add search options to tolerate inexisting indices

This branch includes the following new commits:

     new 6255c1e9ce Storage(ElasticSearch): add search options to tolerate inexisting indices

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: Storage(ElasticSearch): add search options to tolerate inexisting indices

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

kezhenxu94 pushed a commit to branch fix/no-indices
in repository https://gitbox.apache.org/repos/asf/skywalking.git

commit 6255c1e9ce81f53b51071d4c9fdaee20321f4b3f
Author: kezhenxu94 <ke...@apache.org>
AuthorDate: Tue May 17 12:06:13 2022 +0800

    Storage(ElasticSearch): add search options to tolerate inexisting indices
---
 apm-protocol/apm-network/src/main/proto                             | 2 +-
 docs/en/changes/changes.md                                          | 1 +
 .../server/library/client/elasticsearch/ElasticSearchClient.java    | 6 +++++-
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/apm-protocol/apm-network/src/main/proto b/apm-protocol/apm-network/src/main/proto
index f1b62de294..ad4a02c6c0 160000
--- a/apm-protocol/apm-network/src/main/proto
+++ b/apm-protocol/apm-network/src/main/proto
@@ -1 +1 @@
-Subproject commit f1b62de294f7f46f3334900417ffb349f19a479c
+Subproject commit ad4a02c6c035da5182034a53b5fe6998bd52cb9f
diff --git a/docs/en/changes/changes.md b/docs/en/changes/changes.md
index aabac94d9f..eefb4a0963 100644
--- a/docs/en/changes/changes.md
+++ b/docs/en/changes/changes.md
@@ -56,6 +56,7 @@
 * Remove unnecessary `onCompleted` on gRPC `onError` callback.
 * Remove `Layer` concept form `Process`.
 * Update to list all eBPF profiling schedulers without duration.
+* Storage(ElasticSearch): add search options to tolerate inexisting indices.
 
 #### UI
 
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 482ed58745..44440d67fc 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
@@ -253,9 +253,13 @@ public class ElasticSearchClient implements Client, HealthCheckable {
             Arrays.stream(indices.get())
                   .map(indexNameConverter)
                   .toArray(String[]::new);
+        final SearchParams params = new SearchParams()
+            .allowNoIndices(true)
+            .ignoreUnavailable(true)
+            .expandWildcards("open");
         return es.get().search(
             search,
-            null,
+            params,
             indexNames);
     }