We are getting the below error while executing the search requests. We are using ElasticSearch 7.6v
java.lang.RuntimeException: Request cannot be executed; I/O reactor status: STOPPED
We are only using sync method to execute the requests. Below is the code snippet.
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.