SOLR-12078: Fixed reproducable Failure in TestReplicationHandler.doTestIndexFetchOnMasterRestart that happened due to using stale http connections

This commit is contained in:
Shalin Shekhar Mangar 2018-03-15 02:22:25 +05:30
parent 57524f1d41
commit cb453ce110
2 changed files with 7 additions and 0 deletions

View File

@ -438,6 +438,9 @@ Other Changes
* SOLR-12067: Increase autoAddReplicas default 30 second wait time to 120 seconds.
(Varun Thacker, Mark Miller via shalin)
* SOLR-12078: Fixed reproducable Failure in TestReplicationHandler.doTestIndexFetchOnMasterRestart that happened
due to using stale http connections. (Gus Heck, shalin)
================== 7.2.1 ==================
Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release.

View File

@ -638,6 +638,10 @@ public class TestReplicationHandler extends SolrTestCaseJ4 {
masterJetty.stop();
masterJetty.start();
// close and re-create master client because its connection pool has stale connections
masterClient.close();
masterClient = createNewSolrClient(masterJetty.getLocalPort());
nDocs--;
for (int i = 0; i < nDocs; i++)
index(masterClient, "id", i, "name", "name = " + i);