📣 极限科技诚招搜索运维工程师(Elasticsearch/Easysearch)- 全职/北京 👉 : 立即申请加入

版本: 7.11-7.11

简要来说,当 Elasticsearch 无法从请求中指定的源索引汇总数据时,会发生此错误。这可能是由于权限不足、索引名称不正确、或索引已关闭或删除等问题导致的。要解决此问题,请确保索引名称正确,并且索引在集群中处于打开状态且存在。同时,检查用户是否具有执行汇总操作所需的权限。如果问题仍然存在,请考虑查看 Elasticsearch 日志以获取更详细的错误信息。

日志上下文 #

日志 “Failed to rollup index [” + request.getSourceIndex() + “]” 的类名是 TransportRollupAction.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人参考:

public void onFailure(String source; Exception e) {
 listener.onFailure(new ElasticsearchException("failed to publish new cluster state with rollup metadata"; e));
 }
 });
 }; e -> listener.onFailure(
 new ElasticsearchException("Failed to rollup index [" + request.getSourceIndex() + "]"; e))));
 if (indexer.start() == IndexerState.STARTED) {
 indexer.maybeTriggerAsyncJob(Long.MAX_VALUE);
 } else {
 listener.onFailure(new ElasticsearchException("failed to start rollup task"));
 }