[
https://issues.apache.org/jira/browse/SOLR-959?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shalin Shekhar Mangar resolved SOLR-959.
----------------------------------------
Resolution: Fixed
Fix Version/s: 1.4
Assignee: Shalin Shekhar Mangar
Committed revision 741684.
Thanks Hoss and Akshay!
> Remove hardcoded port numbers from TestReplicationHandler
> ---------------------------------------------------------
>
> Key: SOLR-959
> URL: https://issues.apache.org/jira/browse/SOLR-959
> Project: Solr
> Issue Type: Test
> Components: replication (java)
> Reporter: Hoss Man
> Assignee: Shalin Shekhar Mangar
> Priority: Minor
> Fix For: 1.4
>
> Attachments: replicationtest-port-refactor.patch, SOLR-959.patch
>
>
> TestReplicationHandler has a hardcoded port of 9999 in it for the "master".
> hardcoding port numbers in unit tests is very brittle and error prone and can
> cause problems. Ideally tests that aren't explicitly testing network related
> functionality should avoid dealing with the network at all, but when
> neccessary it's much better to let the OS pick any available port (as most
> other solr tests do) then to hardcoded it.
> in TestReplicationHandler things are a little more complicated because the
> master port number needs to be refered to in the slave config files.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.