SOLR-12199: TestReplicationHandler.doTestRepeater(): TEST_PORT interpolation failure: Server refused connection at: http://127.0.0.1:TEST_PORT/solr

This commit is contained in:
Steve Rowe 2018-04-06 14:50:21 -04:00
parent abaf378d0e
commit 5c37b07a3d
2 changed files with 9 additions and 2 deletions

View File

@ -111,6 +111,9 @@ Bug Fixes
* SOLR-11929: UpdateLog metrics are not initialized on core reload. (ab, Steve Rowe)
* SOLR-12199: TestReplicationHandler.doTestRepeater(): TEST_PORT interpolation failure:
Server refused connection at: http://127.0.0.1:TEST_PORT/solr (Mikhail Khludnev, Dawid Weiss, Steve Rowe)
Optimizations
----------------------

View File

@ -294,6 +294,7 @@ public class TestReplicationHandler extends SolrTestCaseJ4 {
public void doTestDetails() throws Exception {
slaveJetty.stop();
slave.setTestPort(masterJetty.getLocalPort());
slave.copyConfigFile(CONF_DIR + "solrconfig-slave.xml", "solrconfig.xml");
slaveJetty = createJetty(slave);
@ -706,6 +707,7 @@ public class TestReplicationHandler extends SolrTestCaseJ4 {
public void doTestIndexFetchWithMasterUrl() throws Exception {
//change solrconfig on slave
//this has no entry for pollinginterval
slave.setTestPort(masterJetty.getLocalPort());
slave.copyConfigFile(CONF_DIR + "solrconfig-slave1.xml", "solrconfig.xml");
slaveJetty.stop();
slaveJetty = createJetty(slave);
@ -840,7 +842,8 @@ public class TestReplicationHandler extends SolrTestCaseJ4 {
String slaveSchema = SLAVE_SCHEMA_1;
try {
slave.setTestPort(masterJetty.getLocalPort());
slave.copyConfigFile(CONF_DIR +"solrconfig-slave1.xml", "solrconfig.xml");
slave.copyConfigFile(CONF_DIR +slaveSchema, "schema.xml");
slaveJetty.stop();
@ -986,6 +989,7 @@ public class TestReplicationHandler extends SolrTestCaseJ4 {
@Test
public void doTestRepeater() throws Exception {
// no polling
slave.setTestPort(masterJetty.getLocalPort());
slave.copyConfigFile(CONF_DIR + "solrconfig-slave1.xml", "solrconfig.xml");
slaveJetty.stop();
slaveJetty = createJetty(slave);
@ -993,7 +997,7 @@ public class TestReplicationHandler extends SolrTestCaseJ4 {
slaveClient = createNewSolrClient(slaveJetty.getLocalPort());
try {
repeater = new SolrInstance(createTempDir("solr-instance").toFile(), "repeater", null);
repeater = new SolrInstance(createTempDir("solr-instance").toFile(), "repeater", masterJetty.getLocalPort());
repeater.setUp();
repeater.copyConfigFile(CONF_DIR + "solrconfig-repeater.xml",
"solrconfig.xml");