From 504ab2d7263414c3485d9edd7503c67b8ab68a3b Mon Sep 17 00:00:00 2001 From: Guangdong Liu Date: Tue, 26 Sep 2023 22:59:38 +0800 Subject: [PATCH] [fix](es-catalog) If the returned data is incorrect, it will be directly unified as the index was not found (#24831) --- .../org/apache/doris/external/elasticsearch/EsRestClient.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/external/elasticsearch/EsRestClient.java b/fe/fe-core/src/main/java/org/apache/doris/external/elasticsearch/EsRestClient.java index bc752179b0..057f18d2fc 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/external/elasticsearch/EsRestClient.java +++ b/fe/fe-core/src/main/java/org/apache/doris/external/elasticsearch/EsRestClient.java @@ -266,7 +266,8 @@ public class EsRestClient { if (response.isSuccessful()) { return response.body().string(); } else { - LOG.warn("request response code: {}, body: {}", response.code(), response.body().string()); + LOG.warn("request response code: {}, body: {}", response.code(), response.message()); + scratchExceptionForThrow = new DorisEsException(response.message()); } } catch (IOException e) { LOG.warn("request node [{}] [{}] failures {}, try next nodes", currentNode, path, e);