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

版本: 7.14-8.9

简要来说,当尝试与一个不在关闭过程中的节点进行交互时,会出现此错误。这可能是由于集群内部的通信错误或时序问题导致的。要解决此问题,您可以尝试以下方法:1) 检查节点的状态,确保其正常运行。2) 如果节点卡住,尝试重启它。3) 确保集群状态健康,所有节点正常通信。4) 检查Elasticsearch日志,查看可能导致此错误的潜在问题。

日志上下文 #

日志 “node [” + request.getNodeId() + “] is not currently shutting down” 的类名是 TransportDeleteShutdownNodeAction.java。 我们从Elasticsearch源代码中提取了以下内容,以供那些寻求深入上下文的人参考:

protected void masterOperation(Task task; Request request; ClusterState state; ActionListenerlistener)
 throws Exception {
 { // This block solely to ensure this NodesShutdownMetadata isn't accidentally used in the cluster state update task below
 NodesShutdownMetadata nodesShutdownMetadata = state.metadata().custom(NodesShutdownMetadata.TYPE);
 if (nodesShutdownMetadata == null || nodesShutdownMetadata.get(request.getNodeId()) == null) {
 throw new ResourceNotFoundException("node [" + request.getNodeId() + "] is not currently shutting down");
 }
 }
 taskQueue.submitTask(
 "delete-node-shutdown-" + request.getNodeId();
 new DeleteShutdownNodeTask(request; listener);