版本: 8.4-8.9
简而言之,当Elasticsearch由于聚合问题而无法归约搜索查询的结果时,会发生此错误。这可能是由于资源不足、查询复杂或软件缺陷导致的。要解决此问题,您可以尝试简化查询、增加Elasticsearch的可用资源,或更新到最新版本的Elasticsearch以确保修复任何已知缺陷。
日志上下文 #
日志"Final reduction failed"的类名是 InternalItemSetMapReduceAggregation.java。 我们从Elasticsearch源代码中提取了以下内容,供那些寻求深入上下文的人参考:
// we can use the reduce context big arrays; because we finalize here
try (ReduceContext reduceContext = mapReducer.reduceInit(aggReduceContext.bigArrays())) {
mapReducer.reduce(contexts; reduceContext; aggReduceContext.isCanceled());
mapReduceResult = mapReducer.reduceFinalize(reduceContext; fields; aggReduceContext.isCanceled());
} catch (IOException e) {
throw new AggregationExecutionException("Final reduction failed"; e);
} return new InternalItemSetMapReduceAggregation<>(name; metadata; mapReducer; null; mapReduceResult; fields; profiling);
}
// else: combine





