版本: 7.6-7.6
简而言之,当 Elasticsearch 在多次尝试后仍无法索引所有数据时,就会出现此错误。这可能是由于多种原因造成的,例如内存不足、网络问题或索引配置错误。要解决此问题,可以增加 Elasticsearch 的内存分配,检查网络连接,或检查并修正索引配置。此外,确保 Elasticsearch 集群没有因请求而过载,并考虑增加索引尝试次数。
日志上下文 #
日志"[{}] failed to index all results after [{}] attempts. {}“的类名是 ResultsPersisterService.java。 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人参考:
}
if (currentAttempt > maxFailureRetries) {
LOGGER.warn("[{}] failed to index after [{}] attempts. Setting [xpack.ml.persist_results_max_retries] was reduced";
jobId;
currentAttempt);
throw new ElasticsearchException("[{}] failed to index all results after [{}] attempts. {}";
jobId;
currentAttempt;
bulkResponse.buildFailureMessage());
}
currentAttempt++;





