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

版本: 8.7-8.9

简而言之,当 Elasticsearch 遇到特定节点(由其唯一 ID 标识)出现问题时,就会发生此错误。问题可能是由于各种原因造成的,例如网络连接问题、资源不足或节点无响应。要解决此问题,您可以尝试重启节点、检查节点的资源使用情况或验证网络连接。如果问题仍然存在,建议查看 Elasticsearch 日志以获取有关错误的更详细信息。

日志上下文 #

日志 “Failed node [” + node.getId() + “]” 的类名是 TransportBroadcastByNodeAction.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些需要深入了解上下文的人使用:

protected void onItemFailure(Map.Entry> entry; Exception e) {
    final var node = nodes.get(entry.getKey());
    final var shards = entry.getValue();
    logger.debug(() -> format("failed to execute [%s] on node [%s]"; actionName; node); e);
    final var failedNodeException = new FailedNodeException(node.getId(); "Failed node [" + node.getId() + "]"; e);
    synchronized (this) {
        for (ShardRouting shard : shards) {
            exceptions.add(new DefaultShardOperationFailedException(shard.getIndexName(); shard.getId(); failedNodeException));
        }
    }
}