[ 
https://issues.apache.org/jira/browse/LUCENE-8636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16742092#comment-16742092
 ] 

Adrien Grand commented on LUCENE-8636:
--------------------------------------

Hi Dawid, thanks for looking. It gives the nightly test a number of documents 
that is not so much higher than testRandomBinaryMedium. Since this test is more 
about querying than indexing, maybe we should disable RandomIndexWriter 
instead? The below patch makes the test run in 4 seconds on my machine with the 
reproduction line that you shared.

{code}
diff --git 
a/lucene/core/src/test/org/apache/lucene/search/TestPointQueries.java 
b/lucene/core/src/test/org/apache/lucene/search/TestPointQueries.java
index 90df7c3..39bb32e 100644
--- a/lucene/core/src/test/org/apache/lucene/search/TestPointQueries.java
+++ b/lucene/core/src/test/org/apache/lucene/search/TestPointQueries.java
@@ -675,7 +675,7 @@ public class TestPointQueries extends LuceneTestCase {
       dir = newDirectory();
     }
 
-    RandomIndexWriter w = new RandomIndexWriter(random(), dir, iwc);
+    IndexWriter w = new IndexWriter(dir, iwc);
 
     int numValues = docValues.length;
     if (VERBOSE) {
@@ -742,7 +742,7 @@ public class TestPointQueries extends LuceneTestCase {
       }
       w.forceMerge(1);
     }
-    final IndexReader r = w.getReader();
+    final IndexReader r = DirectoryReader.open(w);
     w.close();
 
     IndexSearcher s = newSearcher(r, false);
{code}

> TestPointQueries times out on nightly
> -------------------------------------
>
>                 Key: LUCENE-8636
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8636
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Dawid Weiss
>            Assignee: Dawid Weiss
>            Priority: Minor
>             Fix For: 8.0
>
>         Attachments: LUCENE-8636.patch
>
>
> Nightlies have failed with a suite timeout on:
> {code}
> -Dtestcase=TestPointQueries -Dtests.method=testRandomBinaryBig 
> -Dtests.seed=81DB11C283A04F59 -Dtests.multiplier=2 -Dtests.nightly=true 
> -Dtests.slow=true -Dtests.asserts=true -Dtests.file.encoding=US-ASCII
> {code}
> This is a result of plain text codec being used and a large volume of 
> repetitions.
> I'll disable plain text codec on that test.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to