Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-26564

Run several tests using Elasticsearch in parallel

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: QualifiedToSchedule
    • Component/s: Tests

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                akervern Arnaud Kervern
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: