[
https://issues.apache.org/jira/browse/SOLR-16979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17767661#comment-17767661
]
ASF subversion and git services commented on SOLR-16979:
--------------------------------------------------------
Commit fb32cc28835e42c128c53f8edc547dd681ad70ea in solr's branch
refs/heads/branch_9x from Jan Høydahl
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=fb32cc28835 ]
SOLR-16979: Randomize port number of Solr in BATS tests (#1946)
(cherry picked from commit 7eda6a1d32f42e4052351a83670c636b983b561c)
> 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
> Priority: Major
> Time Spent: 5.5h
> Remaining Estimate: 0h
>
> 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: [email protected]
For additional commands, e-mail: [email protected]