[fix](es-catalog) If the returned data is incorrect, it will be directly unified as the index was not found (#24831)

This commit is contained in:
Guangdong Liu
2023-09-26 22:59:38 +08:00
committed by GitHub
parent 841e6188bf
commit 504ab2d726

View File

@ -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);