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

Vigya Sharma commented on LUCENE-10649:
---------------------------------------

>From initial debugging, it seems that the test expects all {{maxDoc}} 
>documents to be present in the docValues field, which is not the case. I 
>printed {{leaf.maxDoc()}} and {{{}numbers.cost(){}}}, and they have different 
>values:

{code:java}
System.out.println(" --> vigya - maxdoc: " + maxDoc + ", cost: " + 
numbers.cost());
--> vigya - maxdoc: 351, cost: 103
{code}

It seems that for this random-test-path, we create a 
{{SparseNumericDocValues(IndexedDisi disi)}} doc values producer, and the 
IndexedDisi itself contains only 103 values. I wonder if something changed 
recently, that breaks the assumption that NumericDocValues in this test will 
always have all the docs indexed.
The IndexedDisi was also created with 103 values.

{code:java}
System.out.printf("\n--> creating IndexedDisi. numvalues: %d\n", 
entry.numValues);
--> creating IndexedDisi. numvalues: 103
{code}

> Failure in TestDemoParallelLeafReader.testRandomMultipleSchemaGensSameField
> ---------------------------------------------------------------------------
>
>                 Key: LUCENE-10649
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10649
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Vigya Sharma
>            Priority: Major
>
> Failing Build Link: 
> [https://jenkins.thetaphi.de/job/Lucene-main-Linux/35617/testReport/junit/org.apache.lucene.index/TestDemoParallelLeafReader/testRandomMultipleSchemaGensSameField/]
> Repro:
> {code:java}
> gradlew test --tests 
> TestDemoParallelLeafReader.testRandomMultipleSchemaGensSameField 
> -Dtests.seed=A7496D7D3957981A -Dtests.multiplier=3 -Dtests.locale=sr-Latn-BA 
> -Dtests.timezone=Etc/GMT-7 -Dtests.asserts=true -Dtests.file.encoding=UTF-8 
> {code}
> Error:
> {code:java}
> java.lang.AssertionError: expected:<103> but was:<2147483647>
>     at 
> __randomizedtesting.SeedInfo.seed([A7496D7D3957981A:F71866BCCEA1C903]:0)
>     at org.junit.Assert.fail(Assert.java:89)
>     at org.junit.Assert.failNotEquals(Assert.java:835)
>     at org.junit.Assert.assertEquals(Assert.java:647)
>     at org.junit.Assert.assertEquals(Assert.java:633)
>     at 
> org.apache.lucene.index.TestDemoParallelLeafReader.testRandomMultipleSchemaGensSameField(TestDemoParallelLeafReader.java:1347)
>     at 
> java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
>  {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to