From d580f9f2a64a5a61fbf85cb052250e7ad80b9c1b Mon Sep 17 00:00:00 2001 From: James Dyer Date: Mon, 23 Apr 2012 20:06:05 +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@1329413 13f79535-47bb-0310-9956-ffa450edef68 --- .../test/org/apache/solr/handler/TestReplicationHandler.java | 3 +++ 1 file changed, 3 insertions(+) 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 afc5f264992..1cdb72a97f8 100644 --- a/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java +++ b/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java @@ -867,6 +867,9 @@ 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);