You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Jan Høydahl (Jira)" <ji...@apache.org> on 2023/09/14 11:13:00 UTC
[jira] [Created] (SOLR-16979) Randomize ports in BATS tests
Jan Høydahl created SOLR-16979:
----------------------------------
Summary: Randomize ports in BATS tests
Key: SOLR-16979
URL: https://issues.apache.org/jira/browse/SOLR-16979
Project: Solr
Issue Type: Improvement
Security Level: Public (Default Security Level. Issues are Public)
Components: Integration Tests
Reporter: Jan Høydahl
Assignee: Jan Høydahl
Currently all BATS tests run solr on port 8983. This means only one test can run at a time, and there is greater risk for port conflict on CI environments.
Introduce random port assignment. Can be done by setting SOLR_PORT env.variable in build.gradle. And perhaps also setting a SOLR2_PORT variable for those tests that explicitly starts a second instance.
Also, at the end of tests, try to assert that no process is still running, and properly clean up.
Ref discussion in dev@ https://lists.apache.org/thread/j9t29wx8zg9oj6xy9tnn8cq063nrp6yp
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org