ES Request cannot be executed; I/O reactor status: STOPPED 报错解决

骑猪看日落 2022-12-30 13:33 284阅读 0赞

ES Request cannot be executed; I/O reactor status: STOPPED 报错解决

在使用ES和SpringBoot进行数据检索时,在web界面中第一次搜索正常。第二次在搜索时在控制台就会输出Request cannot be executed; I/O reactor status: STOPPED错误

原因

原因是因为与ES客户端的连接断开,查看自己代码中与ES客户端连接的代码,中是否使用了client.close()方法,如果使用了方法请将方法注释掉,如果不注释的情况第一次查询完就会调用close()方法关闭连接。

在这里插入图片描述

发表评论

表情:
评论列表 (有 0 条评论,284人围观)

还没有评论,来说两句吧...

相关阅读