diff --git a/solr/contrib/ltr/src/test/org/apache/solr/ltr/TestSelectiveWeightCreation.java b/solr/contrib/ltr/src/test/org/apache/solr/ltr/TestSelectiveWeightCreation.java index d98addab1733..7d857cf1360e 100644 --- a/solr/contrib/ltr/src/test/org/apache/solr/ltr/TestSelectiveWeightCreation.java +++ b/solr/contrib/ltr/src/test/org/apache/solr/ltr/TestSelectiveWeightCreation.java @@ -49,8 +49,10 @@ import org.apache.solr.ltr.norm.Normalizer; import org.junit.AfterClass; import org.junit.BeforeClass; +import org.junit.Ignore; import org.junit.Test; +@Ignore // nocommit flakey public class TestSelectiveWeightCreation extends TestRerankBase { private IndexSearcher getSearcher(IndexReader r) { final IndexSearcher searcher = newSearcher(r, false, false); diff --git a/solr/core/src/test/org/apache/solr/search/TestRealTimeGet.java b/solr/core/src/test/org/apache/solr/search/TestRealTimeGet.java index 8020fc40a7bd..b28c0b725551 100644 --- a/solr/core/src/test/org/apache/solr/search/TestRealTimeGet.java +++ b/solr/core/src/test/org/apache/solr/search/TestRealTimeGet.java @@ -476,15 +476,15 @@ public void testStressGetRealtime() throws Exception { final int optimisticPercent = 1+random().nextInt(50); // percent change that an update uses optimistic locking final int optimisticCorrectPercent = 25+random().nextInt(70); // percent change that a version specified will be correct final int filteredGetPercent = random().nextInt( random().nextInt(20)+1 ); // percent of time that a get will be filtered... we normally don't want too high. - final int ndocs = 5 + (random().nextBoolean() ? random().nextInt(25) : random().nextInt(200)); - int nWriteThreads = 5 + random().nextInt(25); + final int ndocs = TEST_NIGHTLY ? 5 + (random().nextBoolean() ? random().nextInt(25) : random().nextInt(200)) : 13; + int nWriteThreads = TEST_NIGHTLY ? 5 + random().nextInt(25) : 2; final int maxConcurrentCommits = nWriteThreads; // number of committers at a time... // query variables final int percentRealtimeQuery = 60; final AtomicLong operations = new AtomicLong(50000); // number of query operations to perform in total - int nReadThreads = 5 + random().nextInt(25); + int nReadThreads = TEST_NIGHTLY ? 5 + random().nextInt(25) : 3; verbose("commitPercent=", commitPercent); diff --git a/solr/test-framework/src/java/org/apache/solr/SolrTestCase.java b/solr/test-framework/src/java/org/apache/solr/SolrTestCase.java index 088385a4a184..9af109dadcc0 100644 --- a/solr/test-framework/src/java/org/apache/solr/SolrTestCase.java +++ b/solr/test-framework/src/java/org/apache/solr/SolrTestCase.java @@ -342,7 +342,8 @@ public static void afterSolrTestCase() throws Exception { // if (closeTime.getClazz() == SolrCore.class) { // continue; // } - if (closeTime.getElapsedMS() > 1000) { + int closeTimeout = Integer.getInteger("solr.parWorkTestTimeout", 10000); + if (closeTime.getElapsedMS() > closeTimeout) { tooLongTime = closeTime.getElapsedMS(); clazz = closeTime.getClazz(); } diff --git a/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java b/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java index c7d9423607fc..fbccac1f275d 100644 --- a/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java +++ b/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java @@ -91,8 +91,6 @@ import org.apache.solr.client.solrj.impl.CloudSolrClient; import org.apache.solr.client.solrj.impl.ClusterStateProvider; import org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrClient; -import org.apache.solr.client.solrj.impl.Http2SolrClient; -import org.apache.solr.client.solrj.impl.HttpClientUtil; import org.apache.solr.client.solrj.impl.HttpSolrClient; import org.apache.solr.client.solrj.impl.HttpSolrClient.Builder; import org.apache.solr.client.solrj.impl.LBHttpSolrClient;