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

版本: 7.12-8.9

简要来说,当 Elasticsearch 中暂停跟随索引的请求未被确认时,会出现此错误。这可能是由于网络问题、集群负载过重,或跟随索引被删除或不可用所致。要解决此问题,您可以尝试以下方法:1) 检查主节点和跟随节点之间的网络连接。2) 监控集群的健康状况和资源,必要时进行扩容。3) 确保跟随索引存在且可访问。4) 等待一段时间后重试暂停请求。

日志上下文 #

日志 “pause follow request failed to be acknowledged” 的类名是 PauseFollowerIndexStep.java。 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入了解上下文的人参考:

PauseFollowAction.Request request = new PauseFollowAction.Request(followerIndex);
 request.masterNodeTimeout(TimeValue.MAX_VALUE);
 getClient().execute(PauseFollowAction.INSTANCE; request; ActionListener.wrap(r -> {
 if (r.isAcknowledged() == false) {
 throw new ElasticsearchException("pause follow request failed to be acknowledged");
 }
 listener.onResponse(null);
 }; listener::onFailure));
 }
}