You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2020/11/09 07:22:15 UTC
[lucene-solr] branch reference_impl_dev updated: @1109 Speed up non
nightly version again.
This is an automated email from the ASF dual-hosted git repository.
markrmiller pushed a commit to branch reference_impl_dev
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/reference_impl_dev by this push:
new 030cb64 @1109 Speed up non nightly version again.
030cb64 is described below
commit 030cb64d84e14fae2806c679e2e0a6d18e7bbbee
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Mon Nov 9 01:13:58 2020 -0600
@1109 Speed up non nightly version again.
---
.../src/test/org/apache/solr/search/TestRealTimeGet.java | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
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 0a0c240..a3a0a38 100644
--- a/solr/core/src/test/org/apache/solr/search/TestRealTimeGet.java
+++ b/solr/core/src/test/org/apache/solr/search/TestRealTimeGet.java
@@ -44,6 +44,7 @@ public class TestRealTimeGet extends TestRTGBase {
@BeforeClass
public static void beforeClass() throws Exception {
+ // randomizeUpdateLogImpl();
initCore("solrconfig-tlog.xml","schema_latest.xml");
}
@@ -470,22 +471,22 @@ public class TestRealTimeGet extends TestRTGBase {
// req().getCore().getUpdateHandler().getIndexWriterProvider().getIndexWriter(req().getCore()).setInfoStream(System.out);
- final int commitPercent = 5 + random().nextInt(20);
- final int softCommitPercent = 30+random().nextInt(75); // what percent of the commits are soft
+ final int commitPercent = TEST_NIGHTLY ? 5 + random().nextInt(20) : 2;
+ final int softCommitPercent = TEST_NIGHTLY ? 30+random().nextInt(75) : 10; // what percent of the commits are soft
final int deletePercent = 4+random().nextInt(25);
final int deleteByQueryPercent = 1+random().nextInt(5);
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)) : 7;
+ 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);
+ final int percentRealtimeQuery = TEST_NIGHTLY ? 60 : 10;
+ final AtomicLong operations = new AtomicLong(TEST_NIGHTLY ? 50000 : 5000); // number of query operations to perform in total
+ int nReadThreads = TEST_NIGHTLY ? 5 + random().nextInt(25) : 3;
verbose("commitPercent=", commitPercent);