mirror of https://github.com/apache/lucene.git
SOLR-12078: Fixed reproducable Failure in TestReplicationHandler.doTestIndexFetchOnMasterRestart that happened due to using stale http connections
This commit is contained in:
parent
57524f1d41
commit
cb453ce110
|
@ -438,6 +438,9 @@ Other Changes
|
||||||
* SOLR-12067: Increase autoAddReplicas default 30 second wait time to 120 seconds.
|
* SOLR-12067: Increase autoAddReplicas default 30 second wait time to 120 seconds.
|
||||||
(Varun Thacker, Mark Miller via shalin)
|
(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 ==================
|
================== 7.2.1 ==================
|
||||||
|
|
||||||
Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release.
|
Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release.
|
||||||
|
|
|
@ -638,6 +638,10 @@ public class TestReplicationHandler extends SolrTestCaseJ4 {
|
||||||
masterJetty.stop();
|
masterJetty.stop();
|
||||||
masterJetty.start();
|
masterJetty.start();
|
||||||
|
|
||||||
|
// close and re-create master client because its connection pool has stale connections
|
||||||
|
masterClient.close();
|
||||||
|
masterClient = createNewSolrClient(masterJetty.getLocalPort());
|
||||||
|
|
||||||
nDocs--;
|
nDocs--;
|
||||||
for (int i = 0; i < nDocs; i++)
|
for (int i = 0; i < nDocs; i++)
|
||||||
index(masterClient, "id", i, "name", "name = " + i);
|
index(masterClient, "id", i, "name", "name = " + i);
|
||||||
|
|
Loading…
Reference in New Issue