mirror of https://github.com/apache/lucene.git
SOLR-3361: fix "maxNumberOfBackups" to work if backups are triggered on commit
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1329382 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3645d0ab63
commit
936b0bd389
|
@ -243,7 +243,7 @@ public class TestReplicationHandler extends SolrTestCaseJ4 {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void test() throws Exception {
|
public void test() throws Exception {
|
||||||
doTestReplicateAfterCoreReload();
|
doTestReplicateAfterCoreReload();
|
||||||
doTestDetails();
|
doTestDetails();
|
||||||
doTestReplicateAfterWrite2Slave();
|
doTestReplicateAfterWrite2Slave();
|
||||||
doTestIndexAndConfigReplication();
|
doTestIndexAndConfigReplication();
|
||||||
|
@ -867,10 +867,10 @@ public class TestReplicationHandler extends SolrTestCaseJ4 {
|
||||||
if(!addNumberToKeepInRequest) {
|
if(!addNumberToKeepInRequest) {
|
||||||
if(random().nextBoolean()) {
|
if(random().nextBoolean()) {
|
||||||
masterClient.commit();
|
masterClient.commit();
|
||||||
} else {
|
|
||||||
backupThread = new BackupThread(addNumberToKeepInRequest, backupKeepParamName);
|
|
||||||
backupThread.start();
|
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
backupThread = new BackupThread(addNumberToKeepInRequest, backupKeepParamName);
|
||||||
|
backupThread.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue