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

Lucene upgrade violates elasticsearch assertion

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.18.0
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Elastic search asserts the current Lucene version like this

          public static final Version V_2_3_1 = new Version(V_2_3_1_ID, false, org.apache.lucene.util.Version.LUCENE_5_5_0);
      
          public static final Version CURRENT = V_2_3_1;
      
          static {
              assert CURRENT.luceneVersion.equals(Lucene.VERSION) : "Version must be upgraded to [" + Lucene.VERSION + "] is still set to [" + CURRENT.luceneVersion + "]";
          }
      

      which effectively means that no other Lucene version is accepted but 5.5.0

      Camel now integrates lucene-5.5.3 as part of this commit, which then leads to

      11:54:49,545 SEVERE [org.jboss.arquillian.protocol.jmx.JMXTestRunner] (pool-3-thread-1) Failed: org.wildfly.camel.test.elasticsearch.ElasticSearchIntegrationTest.testIndexContentUsingHeaders: java.lang.AssertionError: Version must be upgraded to [5.5.3] is still set to [5.5.0]
      	at org.elasticsearch.Version.<clinit>(Version.java:302)
      	at org.elasticsearch.node.Node.<init>(Node.java:140)
      	at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:143)
      	at org.elasticsearch.node.NodeBuilder.node(NodeBuilder.java:150)
      	at org.wildfly.camel.test.elasticsearch.ElasticSearchIntegrationTest.initEleasticSearchClient(ElasticSearchIntegrationTest.java:220)
      	at org.wildfly.camel.test.elasticsearch.ElasticSearchIntegrationTest.testIndexContentUsingHeaders(ElasticSearchIntegrationTest.java:80)
      ...
      java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.Version
      	at org.elasticsearch.node.Node.<init>(Node.java:140)
      	at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:143)
      	at org.elasticsearch.node.NodeBuilder.node(NodeBuilder.java:150)
      	at org.wildfly.camel.test.elasticsearch.ElasticSearchIntegrationTest.initEleasticSearchClient(ElasticSearchIntegrationTest.java:220)
      	at org.wildfly.camel.test.elasticsearch.ElasticSearchIntegrationTest.testGetContent(ElasticSearchIntegrationTest.java:112)
      

      Camel can likely not use another version of Lucene than Elasticsearch defines. Alternatively it may be possible to install multiple versions of Lucene and wire Elasticsearch to the one it requires.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tdiesler Thomas Diesler
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: