-
Type: Improvement
-
Status: Open
-
Priority: Critical
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: QualifiedToSchedule
-
Component/s: Tests
Like NXP-26563, we should be able to run several tests using embedded Elasticsearch server and org.nuxeo.elasticsearch.test.RepositoryElasticSearchFeature in parallel.
By default, embedded server and client are using default ES ports and results to an error while both tests try to bind the embedded server node.
2018-12-27 11:26:35,278 [main] ERROR [ElasticSearchEmbeddedNode] Not able to bind to local Elasticsearch after multiple attempts, give up 2018-12-27 11:26:35,283 [main] ERROR [RegistrationInfoImpl] Component service:org.nuxeo.elasticsearch.ElasticSearchComponent notification of application started failed: Not able to bind to local Elasticsearch after multiple attempts, give up java.lang.IllegalStateException: Not able to bind to local Elasticsearch after multiple attempts, give up at org.nuxeo.elasticsearch.core.ElasticSearchEmbeddedNode.start(ElasticSearchEmbeddedNode.java:111) ~[classes/:?] at org.nuxeo.elasticsearch.core.ElasticSearchEmbeddedNode.start(ElasticSearchEmbeddedNode.java:113) ~[classes/:?]
Port configuration is possible with a contribution, but does solve the parallelism issue.