Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-14086

Camel-Elasticsearch-Rest: Support of Elastic rest client 7.3.2 is broken

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 2.23.4, 2.24.2
    • Fix Version/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Looks like there is no support of Elastic rest client of 7.3.2 version.

      There is no method setMaxRetryTimeoutMillis in new elastic client library, but it is called from camel-elastic-rest component:

      Caused by: java.lang.NoSuchMethodError: org.elasticsearch.client.RestClientBuilder.setMaxRetryTimeoutMillis(I)Lorg/elasticsearch/client/RestClientBuilder;Caused by: java.lang.NoSuchMethodError: org.elasticsearch.client.RestClientBuilder.setMaxRetryTimeoutMillis(I)Lorg/elasticsearch/client/RestClientBuilder; at org.apache.camel.component.elasticsearch.ElasticsearchProducer.createClient(ElasticsearchProducer.java:274) ~[camel-elasticsearch-rest-2.24.2.jar!/:2.24.2] at org.apache.camel.component.elasticsearch.ElasticsearchProducer.startClient(ElasticsearchProducer.java:265) ~[camel-elasticsearch-rest-2.24.2.jar!/:2.24.2] at org.apache.camel.component.elasticsearch.ElasticsearchProducer.doStart(ElasticsearchProducer.java:256) ~[camel-elasticsearch-rest-2.24.2.jar!/:2.24.2] at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72) ~[camel-core-2.24.2.jar!/:2.24.2] at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75) ~[camel-core-2.24.2.jar!/:2.24.2] at org.apache.camel.impl.DefaultCamelContext.deferStartService(DefaultCamelContext.java:1554) ~[camel-core-2.24.2.jar!/:2.24.2] at org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:1471) ~[camel-core-2.24.2.jar!/:2.24.2] at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1441) ~[camel-core-2.24.2.jar!/:2.24.2] at org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:578) ~[camel-core-2.24.2.jar!/:2.24.2]

        Attachments

          Activity

            People

            • Assignee:
              acosentino Andrea Cosentino
              Reporter:
              atyurin Andrey Tyurin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: