--- title: "无法汇总索引请求 getSourceIndex - 如何解决此 Elasticsearch 异常" date: 2026-02-26 lastmod: 2026-02-26 description: "此错误发生在 Elasticsearch 无法从请求中指定的源索引汇总数据时,可能是由于权限不足、索引名称错误或索引已关闭或删除等原因导致。" tags: ["汇总", "索引", "权限"] summary: "版本: 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." --- > **版本:** 7.11-7.11 简要来说,当 Elasticsearch 无法从请求中指定的源索引汇总数据时,会发生此错误。这可能是由于权限不足、索引名称不正确、或索引已关闭或删除等问题导致的。要解决此问题,请确保索引名称正确,并且索引在集群中处于打开状态且存在。同时,检查用户是否具有执行汇总操作所需的权限。如果问题仍然存在,请考虑查看 Elasticsearch 日志以获取更详细的错误信息。 日志上下文 ----------- 日志 "Failed to rollup index [" + request.getSourceIndex() + "]" 的类名是 [TransportRollupAction.java](https://www.geeksforgeeks.org/java-lang-class-class-java-set-1/)。我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人参考: ```java 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")); } ```