You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by br...@apache.org on 2021/04/05 21:00:35 UTC
[lucene-solr] branch branch_8x updated: SOLR-15217: Fix test
failure.
This is an automated email from the ASF dual-hosted git repository.
broustant pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/branch_8x by this push:
new 69bd676 SOLR-15217: Fix test failure.
69bd676 is described below
commit 69bd676db79579a0f426f04571f949545590af8a
Author: Bruno Roustant <br...@salesforce.com>
AuthorDate: Mon Apr 5 22:57:51 2021 +0200
SOLR-15217: Fix test failure.
---
.../org/apache/solr/cloud/cdcr/CdcrBootstrapTest.java | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/solr/core/src/test/org/apache/solr/cloud/cdcr/CdcrBootstrapTest.java b/solr/core/src/test/org/apache/solr/cloud/cdcr/CdcrBootstrapTest.java
index af4b0a6..1321648 100644
--- a/solr/core/src/test/org/apache/solr/cloud/cdcr/CdcrBootstrapTest.java
+++ b/solr/core/src/test/org/apache/solr/cloud/cdcr/CdcrBootstrapTest.java
@@ -37,6 +37,8 @@ import org.apache.solr.common.SolrInputDocument;
import org.apache.solr.common.params.CommonParams;
import org.apache.solr.common.params.ModifiableSolrParams;
import org.apache.solr.handler.CdcrParams;
+import org.junit.After;
+import org.junit.Before;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -45,6 +47,20 @@ public class CdcrBootstrapTest extends SolrTestCaseJ4 {
private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
+ @Override
+ @Before
+ public void setUp() throws Exception {
+ super.setUp();
+ systemSetPropertySolrDisableShardsWhitelist("true");
+ }
+
+ @Override
+ @After
+ public void tearDown() throws Exception {
+ super.tearDown();
+ systemClearPropertySolrDisableShardsWhitelist();
+ }
+
/**
* Starts a source cluster with no CDCR configuration, indexes enough documents such that
* the at least one old tlog is closed and thrown away so that the source cluster does not have