版本: 7.11-8.9
简而言之,当 Elasticsearch 节点正在关闭过程中时,会出现此错误,原因可能是手动关闭命令,也可能是系统故障或资源耗尽等内部问题。要解决此问题,您可以检查系统日志以识别任何潜在问题。如果是手动关闭,请确保该命令是有意为之。如果是由于资源耗尽,请考虑增加系统资源或优化 Elasticsearch 配置以更高效地使用资源。如果是系统故障,请调查原因并应用必要的修复。
日志上下文 #
日志 “node is shutting down” 的类名是 PeerRecoveryTargetService.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人使用:
);
}
Throwable cause = ExceptionsHelper.unwrapCause(e);
if (transportService.lifecycleState() != Lifecycle.State.STARTED) {
// the node is shutting down; we just fail the recovery to release resources
onGoingRecoveries.failRecovery(recoveryId; new RecoveryFailedException(request; "node is shutting down"; cause); false);
return;
}
if (cause instanceof CancellableThreads.ExecutionCancelledException) {
// this can also come from the source wrapped in a RemoteTransportException
onGoingRecoveries.failRecovery(





