Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-16979

Randomize ports in BATS tests

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.4
    • Integration Tests
    • None

    Description

      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

      Attachments

        Activity

          People

            janhoy Jan Høydahl
            janhoy Jan Høydahl
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 5h 40m
                5h 40m