Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Elasticsearch Request cannot be executed; I/O reactor status: STOPPED

We are getting the below error while executing the search requests. We are using ElasticSearch 7.9.2v

java.lang.RuntimeException: Request cannot be executed; I/O reactor status: STOPPED I am only using sync method to execute the requests as shown below:

client.search(searchRequest,RequestOptions.DEFAULT) When the first time the issue occurs looks like it stops the RestHighLevelClient and the subsequent calls are getting failed with the same error. we need to restart our app to initialize the client again. From last two days, we are running into this issue very frequently.

Note: we are not closing the client for every call. We initiate the client during application startup and close it only when the app is getting shut down.

like image 568
wonde Avatar asked Nov 15 '25 18:11

wonde


2 Answers

Had the same issue. It was caused by OutOfMemoryError that was caused by other changes at my service.

So increasing heap-space limit helped.

like image 61
rudi Avatar answered Nov 17 '25 07:11

rudi


Restarting the java process (in my case is SpringBoot java process) fixes the problem.

like image 23
Son H. Nguyen Avatar answered Nov 17 '25 08:11

Son H. Nguyen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!