benwtrent commented on issue #14517:
URL: https://github.com/apache/lucene/issues/14517#issuecomment-2816102821

   Another possibility, the `competitiveIterator.docID()` positioning and the 
`docsWithField.docID()` got out of sync somehow. Reading the code, I don't 
immediately see how, but this would cause the initial check to advance to be by 
passed (e.g. its already considered iterated), but the `docsWithField` wasn't 
actually iterated yet.
   
   I could be paranoid and add another check in the 
`TermOrdValComparator.CompetitiveIterator#intoBitSet`. This would then force 
that internal sparse doc iterator to be atleast offset.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to