Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I/O reactor status : STOPPED #3089

Open
Zixell opened this issue Jun 18, 2024 · 1 comment
Open

I/O reactor status : STOPPED #3089

Zixell opened this issue Jun 18, 2024 · 1 comment

Comments

@Zixell
Copy link

Zixell commented Jun 18, 2024

Version: 7.1.0

image

We are having these errors occasionally, for some reason ES client after fail killing IO Reactor and it is not recovering, so the only thing we can do to fix it - is restarting our service.

I've tried to implement custom exception handler for IO reactor and pass it to httpClientBuilder but in our case it brakes our SSL config and causes for problems then it solves.

override val restClient: RestClient = RestClient
    .builder(elasticHosts: _*)
    .setRequestConfigCallback(NoOpRequestConfigCallback)
    .setHttpClientConfigCallback(new HttpClientConfigCallback {
      override def customizeHttpClient(httpClientBuilder: HttpAsyncClientBuilder): HttpAsyncClientBuilder = {
        if (withBasicAuth) httpClientBuilder.setDefaultCredentialsProvider(getCredentialsProvider)
        if (isASecureConnection) httpClientBuilder.setSSLContext(getContextJDK(configuration))
        httpClientBuilder.setDefaultIOReactorConfig(IOReactorConfig.custom()
          .setSoKeepAlive(true)
          .build())
      }
    })
    .build()

  override val client: ElasticClient = ElasticClient(JavaClient.fromRestClient(restClient))

This is out rest client configuration.

Anyway, my question is: is it a known issue and if so, maybe it was fixed in newer versions? I found somewhere that it is was fixed in 7.16.3 but could find any evidence of that.

Feel free to ask any other information! As I found online many people experiencing the same issue, but I couldn't find solid solution for this, so I decided to create an Issue.

@Philippus
Copy link
Owner

I don't think this is an issue with elastic4s, but maybe with Elasticsearch itself?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants