We encountered a very rare strange bug (looks like it must be a JVM
bug) where we have a Scorer.docid() method like this:
if (curDocIdx >= topDocs.scoreDocs.length) {
return NO_MORE_DOCS;
}
return topDocs.scoreDocs[curDocIdx].doc;
And this was very rarely, not reproducibly, but repeatedly raising
ArrayIndexOutOfBoundsException!
It made us notice that topDocs.scoreDocs is not final, which maybe
would have prevented this. Is there any reason why we would not make
this member final?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
bug) where we have a Scorer.docid() method like this:
if (curDocIdx >= topDocs.scoreDocs.length) {
return NO_MORE_DOCS;
}
return topDocs.scoreDocs[curDocIdx].doc;
And this was very rarely, not reproducibly, but repeatedly raising
ArrayIndexOutOfBoundsException!
It made us notice that topDocs.scoreDocs is not final, which maybe
would have prevented this. Is there any reason why we would not make
this member final?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org