From 936b0bd3890d134f05f288a6069ce164d93395fe Mon Sep 17 00:00:00 2001 From: James Dyer Date: Mon, 23 Apr 2012 19:20:16 +0000 Subject: [PATCH] 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 --- .../org/apache/solr/handler/TestReplicationHandler.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java b/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java index 4efa357e15f..afc5f264992 100644 --- a/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java +++ b/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java @@ -243,7 +243,7 @@ public class TestReplicationHandler extends SolrTestCaseJ4 { } public void test() throws Exception { - doTestReplicateAfterCoreReload(); + doTestReplicateAfterCoreReload(); doTestDetails(); doTestReplicateAfterWrite2Slave(); doTestIndexAndConfigReplication(); @@ -867,10 +867,10 @@ public class TestReplicationHandler extends SolrTestCaseJ4 { if(!addNumberToKeepInRequest) { if(random().nextBoolean()) { masterClient.commit(); - } else { - backupThread = new BackupThread(addNumberToKeepInRequest, backupKeepParamName); - backupThread.start(); } + } else { + backupThread = new BackupThread(addNumberToKeepInRequest, backupKeepParamName); + backupThread.start(); }