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/07/12 17:39:16 UTC

[lucene-solr] branch reference_impl updated: #95 Knock this test down.

This is an automated email from the ASF dual-hosted git repository.

markrmiller pushed a commit to branch reference_impl
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/reference_impl by this push:
     new 15d9886  #95 Knock this test down.
15d9886 is described below

commit 15d9886e12583bcc2cff3a5085b6b4225c2de2b6
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Sun Jul 12 12:39:03 2020 -0500

    #95 Knock this test down.
---
 solr/core/src/test/org/apache/solr/search/TestRealTimeGet.java | 10 +++++-----
 1 file changed, 5 insertions(+), 5 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 b28c0b7..0b14c9b 100644
--- a/solr/core/src/test/org/apache/solr/search/TestRealTimeGet.java
+++ b/solr/core/src/test/org/apache/solr/search/TestRealTimeGet.java
@@ -469,21 +469,21 @@ 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 = TEST_NIGHTLY ? 5 + (random().nextBoolean() ? random().nextInt(25) : random().nextInt(200)) : 13;
+    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
+    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;