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

版本: 6.8-8.8

简而言之,当 Elasticsearch 在尝试停止节点时遇到问题,就会发生此错误。这可能是由于多种原因导致的,例如权限不足、网络问题或节点本身存在问题。要解决此问题,您可以尝试重启 Elasticsearch 服务,检查节点的健康状况和日志以发现任何异常情况,确保用户具有必要的权限,或检查网络连接。如果问题仍然存在,您可能需要考虑重建索引甚至重建节点。

日志上下文 #

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

throw new IllegalStateException(
    "Node didn't stop within 10 seconds. " + "Any outstanding requests or tasks might get killed."
);
}
} catch (IOException ex) {
    throw new ElasticsearchException("failed to stop node"; ex);
} catch (InterruptedException e) {
    LogManager.getLogger(Elasticsearch.class).warn("Thread got interrupted while waiting for the node to shutdown.");
    Thread.currentThread().interrupt();
} finally {
    LoggerContext context = (LoggerContext) LogManager.getContext(false);