RE: Assertion error with NumericDocValues.advanceExact
Thank you Adrien, you are correct! There was an out of order call. -Original Message- From: Adrien Grand Sent: Monday, January 1, 2024 8:59 PM To: java-user@lucene.apache.org Subject: Re: Assertion error with NumericDocValues.advanceExact Hello, Can you check if you are running advanceExact on decreasing doc IDs or on doc IDs that are outside of the valid range [0, maxDoc)? If you have Lucene's test framework on your classpath, these checks can be added automatically by using AssertingIndexSearcher instead of IndexSearcher to run queries. On Sun, Dec 31, 2023 at 8:51 AM wrote: > Stack trace: > > java.lang.AssertionError > > at > org.apache.lucene.codecs.lucene90.IndexedDISI$Method$1.advanceExactWit > hinBlock(IndexedDISI.java:567) > > at > org.apache.lucene.codecs.lucene90.IndexedDISI.advanceExact(IndexedDISI > .java:461) > > at > org.apache.lucene.codecs.lucene90.Lucene90DocValuesProducer$SparseNume > ricDocValues.advanceExact(Lucene90DocValuesProducer.java:453) > > > > Lucene 9.80 with a 9.80 index. > > > > Everything seems to work fine if I run it with assertions disabled. > > This is a large project which I can’t share. > > CheckIndex didn’t find any problems. > > > > Erel > > > > -- Adrien - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org
Re: Assertion error with NumericDocValues.advanceExact
Hello, Can you check if you are running advanceExact on decreasing doc IDs or on doc IDs that are outside of the valid range [0, maxDoc)? If you have Lucene's test framework on your classpath, these checks can be added automatically by using AssertingIndexSearcher instead of IndexSearcher to run queries. On Sun, Dec 31, 2023 at 8:51 AM wrote: > Stack trace: > > java.lang.AssertionError > > at > org.apache.lucene.codecs.lucene90.IndexedDISI$Method$1.advanceExactWithinBlock(IndexedDISI.java:567) > > at > org.apache.lucene.codecs.lucene90.IndexedDISI.advanceExact(IndexedDISI.java:461) > > at > org.apache.lucene.codecs.lucene90.Lucene90DocValuesProducer$SparseNumericDocValues.advanceExact(Lucene90DocValuesProducer.java:453) > > > > Lucene 9.80 with a 9.80 index. > > > > Everything seems to work fine if I run it with assertions disabled. > > This is a large project which I can’t share. > > CheckIndex didn’t find any problems. > > > > Erel > > > > -- Adrien
Assertion error with NumericDocValues.advanceExact
Stack trace: java.lang.AssertionError at org.apache.lucene.codecs.lucene90.IndexedDISI$Method$1.advanceExactWithinBlock(IndexedDISI.java:567) at org.apache.lucene.codecs.lucene90.IndexedDISI.advanceExact(IndexedDISI.java:461) at org.apache.lucene.codecs.lucene90.Lucene90DocValuesProducer$SparseNumericDocValues.advanceExact(Lucene90DocValuesProducer.java:453) Lucene 9.80 with a 9.80 index. Everything seems to work fine if I run it with assertions disabled. This is a large project which I can’t share. CheckIndex didn’t find any problems. Erel