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

Allow JettySolrRunner to restart using a different port

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.3
    • Component/s: None
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None

      Description

      When a JettySolrRunner is restarted, it currently tries to reuse the same port as it was running on before the restart. This can lead to stale connections, and test failures (see SOLR-6944 for an example, but it seems to be happening in other tests, CollectionStateWatchersTest for example). In plenty of cases, we don't actually need to restart on the same port, so we should add the ability to ignore previous port numbers and just come up on any port that is available.

        Attachments

          Activity

            People

            • Assignee:
              romseygeek Alan Woodward
              Reporter:
              romseygeek Alan Woodward
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: