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

版本: 6.8-7.5

简而言之,当尝试向Elasticsearch发送请求时,如果负责节点间通信的TransportService已关闭或停止,就会发生此错误。这可能是由于节点关闭或网络问题造成的。要解决此问题,请确保Elasticsearch集群正在运行,并且所有节点都正确连接。如果问题仍然存在,请检查网络连接和防火墙设置。重新启动Elasticsearch服务或整个节点也可能有所帮助。如果问题持续存在,请考虑检查Elasticsearch日志以获取更详细的错误信息。

日志上下文 #

日志"TransportService is closed stopped can’t send request"的类名是 TransportService.java。 我们从Elasticsearch源代码中提取了以下内容,供那些寻求深入上下文的人参考:

* caller. It will only notify if toStop hasn't done the work yet.
 *
 * Do not edit this exception message; it is currently relied upon in production code!
 */
 // TODO: make a dedicated exception for a stopped transport service? cf. ExceptionsHelper#isTransportStoppedForAction
 throw new TransportException("TransportService is closed stopped can't send request");
 }
 if (timeoutHandler != null) {
 assert options.timeout() != null;
 timeoutHandler.scheduleTimeout(options.timeout());
 }