mirror of https://github.com/apache/lucene.git
SOLR-12313: No need to wait for in-sync with leader in RecoveryAfterSoftCommitTest since we only care about recovery
This commit is contained in:
parent
42ee96642c
commit
397b88aefa
|
@ -25,6 +25,7 @@ import org.apache.solr.client.solrj.request.AbstractUpdateRequest;
|
||||||
import org.apache.solr.client.solrj.request.UpdateRequest;
|
import org.apache.solr.client.solrj.request.UpdateRequest;
|
||||||
import org.apache.solr.common.SolrInputDocument;
|
import org.apache.solr.common.SolrInputDocument;
|
||||||
import org.apache.solr.common.cloud.Replica;
|
import org.apache.solr.common.cloud.Replica;
|
||||||
|
import org.apache.solr.util.TestInjection;
|
||||||
import org.junit.AfterClass;
|
import org.junit.AfterClass;
|
||||||
import org.junit.BeforeClass;
|
import org.junit.BeforeClass;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
@ -50,6 +51,7 @@ public class RecoveryAfterSoftCommitTest extends AbstractFullDistribZkTestBase {
|
||||||
System.setProperty("solr.ulog.numRecordsToKeep", String.valueOf(ULOG_NUM_RECORDS_TO_KEEP));
|
System.setProperty("solr.ulog.numRecordsToKeep", String.valueOf(ULOG_NUM_RECORDS_TO_KEEP));
|
||||||
// avoid creating too many files, see SOLR-7421
|
// avoid creating too many files, see SOLR-7421
|
||||||
System.setProperty("useCompoundFile", "true");
|
System.setProperty("useCompoundFile", "true");
|
||||||
|
TestInjection.waitForReplicasInSync = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@AfterClass
|
@AfterClass
|
||||||
|
@ -57,6 +59,7 @@ public class RecoveryAfterSoftCommitTest extends AbstractFullDistribZkTestBase {
|
||||||
System.clearProperty("solr.tests.maxBufferedDocs");
|
System.clearProperty("solr.tests.maxBufferedDocs");
|
||||||
System.clearProperty("solr.ulog.numRecordsToKeep");
|
System.clearProperty("solr.ulog.numRecordsToKeep");
|
||||||
System.clearProperty("useCompoundFile");
|
System.clearProperty("useCompoundFile");
|
||||||
|
TestInjection.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue