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

版本: 6.8-8.9

简而言之,当 Elasticsearch 尝试使用已经关闭的网络连接时,就会出现此错误。这可能是由于网络问题、超时或节点关闭造成的。要解决此问题,可以尝试增加超时设置、确保网络连接稳定,或检查节点是否正常运行。如果问题仍然存在,建议查看 Elasticsearch 日志以获取有关错误的更详细信息。

日志上下文 #

“连接已关闭”(connection already closed)日志的类名是 TcpTransport.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入了解的用户参考:

@Override
 public void sendRequest(long requestId; String action; TransportRequest request; TransportRequestOptions options)
 throws IOException; TransportException {
 if (isClosing.get()) {
 throw new NodeNotConnectedException(node; "connection already closed");
 }
 TcpChannel channel = channel(options.type());  // In this is a proxy request; determine whether we want to compress based on the wrapped request
 final TransportRequest wrapped;