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

版本: 7.3-8.9

简要来说,当 Elasticsearch 尝试重新路由分片但由于网络问题、节点故障或资源不足等问题而失败时,就会出现此错误。要解决此问题,您可以尝试以下方法:1) 检查集群的健康状况,确保所有节点正常运行。2) 验证节点之间的网络连接。3) 确保有足够的磁盘空间和内存供 Elasticsearch 运行。4) 查看 Elasticsearch 日志以获取更详细的错误信息。5) 如果问题仍然存在,请考虑增加集群容量或优化索引设置以减少资源使用。

日志上下文 #

日志 “delayed reroute [” + reason + “] failed” 的类名是 BatchedRerouteService.java。 我们从 Elasticsearch 源代码中提取了以下内容,供寻求深入背景的人参考:

logger.error(
 () -> format("unexpected failure during [%s]; current state version [%s]", source, state.version()),
 e
 );
 }
 ActionListener.onFailure(currentListeners, new ElasticsearchException("delayed reroute [" + reason + "] failed", e));
 }  @Override
 public void clusterStateProcessed(ClusterState oldState, ClusterState newState) {
 future.addListener(ActionListener.running(() -> ActionListener.onResponse(currentListeners, null)));