You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2022/11/02 16:17:22 UTC

[lucene] branch main updated: Tone down TestDocumentsWriterStallControl.testRandom, so it does not take minutes (#11894)

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

rmuir pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git


The following commit(s) were added to refs/heads/main by this push:
     new 4e207fed62e Tone down TestDocumentsWriterStallControl.testRandom, so it does not take minutes (#11894)
4e207fed62e is described below

commit 4e207fed62edeadf296d9d07b420d5c99bdb5150
Author: Robert Muir <rm...@apache.org>
AuthorDate: Wed Nov 2 12:17:15 2022 -0400

    Tone down TestDocumentsWriterStallControl.testRandom, so it does not take minutes (#11894)
    
    This test often takes several minutes with normal runs (no NIGHTLY/multiplier/etc). Tone it down so that it isn't slow: CI builds can work it harder by passing those parameters
---
 .../test/org/apache/lucene/index/TestDocumentsWriterStallControl.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lucene/core/src/test/org/apache/lucene/index/TestDocumentsWriterStallControl.java b/lucene/core/src/test/org/apache/lucene/index/TestDocumentsWriterStallControl.java
index 9327e86469a..395fdde7b88 100644
--- a/lucene/core/src/test/org/apache/lucene/index/TestDocumentsWriterStallControl.java
+++ b/lucene/core/src/test/org/apache/lucene/index/TestDocumentsWriterStallControl.java
@@ -62,7 +62,7 @@ public class TestDocumentsWriterStallControl extends LuceneTestCase {
             @Override
             public void run() {
 
-              int iters = atLeast(1000);
+              int iters = atLeast(100);
               for (int j = 0; j < iters; j++) {
                 ctrl.updateStalled(random().nextInt(stallProbability) == 0);
                 if (random().nextInt(5) == 0) { // thread 0 only updates