elasticsearch - ElasticSearchIntegrationTest : randomly occuring classpath error -



elasticsearch - ElasticSearchIntegrationTest : randomly occuring classpath error -

i migrated old test suite using local elasticsearch cluster extending elasticsearchintegrationtest (like described here).

@elasticsearchintegrationtest.clusterscope(scope = elasticsearchintegrationtest.scope.suite) public class indexingtestsuite extends elasticsearchintegrationtest{ ... }

when launch in intellij, next error occurs every other time.

does know how prepare this?

java.lang.assertionerror: prepare classpath have tests-framework.jar before lucene-core.jar @ __randomizedtesting.seedinfo.seed([d0fe9552b361a6b7]:0) @ org.apache.lucene.util.testrulesetupandrestoreclassenv.before(testrulesetupandrestoreclassenv.java:202) @ org.apache.lucene.util.abstractbeforeafterrule$1.evaluate(abstractbeforeafterrule.java:45) @ org.apache.lucene.util.testrulestoreclassname$1.evaluate(testrulestoreclassname.java:42) @ com.carrotsearch.randomizedtesting.rules.systempropertiesinvariantrule$1.evaluate(systempropertiesinvariantrule.java:55) @ com.carrotsearch.randomizedtesting.rules.noshadowingoroverridesonmethodsrule$1.evaluate(noshadowingoroverridesonmethodsrule.java:39) @ com.carrotsearch.randomizedtesting.rules.noshadowingoroverridesonmethodsrule$1.evaluate(noshadowingoroverridesonmethodsrule.java:39) @ com.carrotsearch.randomizedtesting.rules.statementadapter.evaluate(statementadapter.java:36) @ org.apache.lucene.util.testruleassertionsrequired$1.evaluate(testruleassertionsrequired.java:43) @ org.apache.lucene.util.testrulemarkfailure$1.evaluate(testrulemarkfailure.java:48) @ org.apache.lucene.util.testruleignoreaftermaxfailures$1.evaluate(testruleignoreaftermaxfailures.java:65) @ org.apache.lucene.util.testruleignoretestsuites$1.evaluate(testruleignoretestsuites.java:55) @ com.carrotsearch.randomizedtesting.rules.statementadapter.evaluate(statementadapter.java:36) @ com.carrotsearch.randomizedtesting.threadleakcontrol$statementrunner.run(threadleakcontrol.java:360) @ java.lang.thread.run(thread.java:745)

the message pretty clear classpath issue, i've done nil special. according documentation, added next dependencies :

<dependency> <groupid>org.elasticsearch</groupid> <artifactid>elasticsearch</artifactid> <version>${elasticsearch.version}</version> <scope>test</scope> <type>test-jar</type> </dependency> <dependency> <groupid>org.apache.lucene</groupid> <artifactid>lucene-test-framework</artifactid> <version>${lucene.version}</version> <scope>test</scope> </dependency>

the dependencies defined in parent pom of project.

the problem has been fixed moving lucene-test-framework dependency each kid pom (at first position).

see here.

elasticsearch

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -