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:32:27 UTC

[lucene] branch branch_9x 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 branch_9x
in repository https://gitbox.apache.org/repos/asf/lucene.git


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

commit eea4b16087fc2d3c98823753565fb0855575b6d7
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