Dependabot tries to upgrade lucene from 8.10.1 to 8.11.3, see https://github.com/nuxeo/nuxeo-lts/pull/1723, but it's breaking the Opensearch tests with:
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.286 s <<< FAILURE! - in org.nuxeo.elasticsearch.test.TestMapping [ERROR] org.nuxeo.elasticsearch.test.TestMapping Time elapsed: 1.286 s <<< ERROR! java.lang.NoClassDefFoundError: Could not initialize class org.opensearch.cluster.node.DiscoveryNode at org.opensearch.node.Node.<init>(Node.java:406) at org.nuxeo.elasticsearch.core.PluginConfigurableNode.<init>(PluginConfigurableNode.java:35) at org.nuxeo.elasticsearch.core.ElasticSearchEmbeddedNode.start(ElasticSearchEmbeddedNode.java:97) at org.nuxeo.elasticsearch.core.ElasticSearchAdminImpl.connect(ElasticSearchAdminImpl.java:142) at org.nuxeo.elasticsearch.core.ElasticSearchAdminImpl.<init>(ElasticSearchAdminImpl.java:123) at org.nuxeo.elasticsearch.ElasticSearchComponent.start(ElasticSearchComponent.java:182) at org.nuxeo.runtime.model.impl.RegistrationInfoImpl.start(RegistrationInfoImpl.java:350) at org.nuxeo.runtime.model.impl.ComponentManagerImpl.startComponent(ComponentManagerImpl.java:742) at org.nuxeo.runtime.model.impl.ComponentManagerImpl.startComponents(ComponentManagerImpl.java:724) at org.nuxeo.runtime.model.impl.ComponentManagerImpl.start(ComponentManagerImpl.java:825) at org.nuxeo.runtime.osgi.OSGiRuntimeService.startComponents(OSGiRuntimeService.java:470) at org.nuxeo.runtime.osgi.OSGiRuntimeService.frameworkEvent(OSGiRuntimeService.java:485) at org.nuxeo.osgi.OSGiAdapter.fireFrameworkEvent(OSGiAdapter.java:222) at org.nuxeo.runtime.test.RuntimeHarnessImpl.fireFrameworkStarted(RuntimeHarnessImpl.java:215) at org.nuxeo.runtime.test.runner.RuntimeFeature.beforeRun(RuntimeFeature.java:144) at org.nuxeo.runtime.test.runner.FeaturesRunner.lambda$beforeRun$2(FeaturesRunner.java:250) at org.nuxeo.runtime.test.runner.FeaturesRunner.apply(FeaturesRunner.java:300) at org.nuxeo.runtime.test.runner.FeaturesRunner.apply(FeaturesRunner.java:286) at org.nuxeo.runtime.test.runner.FeaturesRunner.beforeRun(FeaturesRunner.java:250) at org.nuxeo.runtime.test.runner.FeaturesRunner$BeforeClassStatement.evaluate(FeaturesRunner.java:384) at org.junit.rules.RunRules.evaluate(RunRules.java:20) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.AssertionError: Version must be upgraded to [8.11.3] is still set to [8.10.1] [in thread "main"] at org.opensearch.LegacyESVersion.<clinit>(LegacyESVersion.java:194) at org.opensearch.cluster.node.DiscoveryNodeRole.<clinit>(DiscoveryNodeRole.java:233) at org.opensearch.cluster.node.DiscoveryNode.<clinit>(DiscoveryNode.java:565) ... 31 more
It seems that the lucene version should be kept in sync with the one required by Opensearch, e.g. in opensearch 1.3.15:
lucene = 8.10.1
We should probably ignore lucene updates > 8.10.1 in Dependabot, and adapt this ignore pattern whenever opensearch is upgraded.
- depends on
-
NXP-31788 Upgrade lucene to 8.10.0
- Resolved