Opensearch java response stuck on org.apache.http.concurrent.BasicFuture:get

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
Opensearch version : 1.1
Java rest high level client : 2.6.0

Describe the issue:
We had multiple threads stuck waiting for a response, sometimes for a whole day. Do we know exactly what goes wrong in the HTTP client that can explain this ?

Configuration:

final CredentialsProvider credentialsProvider = new BasicCredentialsProvider();

    credentialsProvider.setCredentials(ANY,
        new UsernamePasswordCredentials(openSearchProperties.getUsername(), openSearchProperties.getPassword()));

    RestClientBuilder builder = RestClient.builder(new HttpHost(openSearchProperties.getHost(), openSearchProperties.getPort(), "https"))
      .setHttpClientConfigCallback(httpClientBuilder -> httpClientBuilder
        .setDefaultCredentialsProvider(credentialsProvider)
        .setSSLHostnameVerifier(INSTANCE)
        .setSSLContext(createSSLContext()));
    return new RestHighLevelClient(builder);

Relevant Logs or Screenshots:

@rajvasani11 do you have an idea what OpenSeach API is being affected? Do you have timeout configured per request?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.