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

版本: 8.9-8.9

简而言之,当关闭 Elasticsearch 节点的过程中出现问题时,就会发生此错误。这可能是由于各种原因造成的,例如网络中断、进程中断或资源限制。要解决此问题,您可以尝试以下方法:1)检查节点日志以获取更详细的错误信息。2)确保没有可能被关闭中断的正在进行的操作。3)检查系统资源以确保有足够的内存和 CPU。4)如果问题仍然存在,考虑重启节点或整个集群。

日志上下文 #


日志"Failure occurred while shutting down 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("Failure occurred while shutting down 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);