lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] Commented: (LUCENE-2884) StandardCodec sometimes supplies skip pointers past EOF
Date Mon, 24 Jan 2011 18:08:44 GMT


Michael McCandless commented on LUCENE-2884:

OK I found the problem -- in SPR.nextTerm(), when the term's docFreq is low enough to not
have any skip data, we don't change the .skipOffset in the TermState.  This then confuses
the D/&P enums because they check this field to decide whether to load skip data.

I have no idea why suddenly, today, this caused so many failures!

Will commit a fix shortly...

> StandardCodec sometimes supplies skip pointers past EOF
> -------------------------------------------------------
>                 Key: LUCENE-2884
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Codecs
>    Affects Versions: 4.0
>            Reporter: Robert Muir
> Pretty sure this is 4.0-only:
> I added an assertion, the test to reproduce is:
> ant test-core -Dtestcase=TestPayloadNearQuery -Dtestmethod=testMinFunction -Dtests.seed=4841190615781133892:3888521539169738727
> {noformat}
>     [junit] Testcase: testMinFunction(
>     [junit] invalid skip pointer: 404, length=337
>     [junit] junit.framework.AssertionFailedError: invalid skip pointer: 404, length=337
>     [junit]     at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(
>     [junit]     at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(
>     [junit]     at org.apache.lucene.index.codecs.MultiLevelSkipListReader.init(
>     [junit]     at org.apache.lucene.index.codecs.standard.DefaultSkipListReader.init(
>     [junit]     at org.apache.lucene.index.codecs.standard.StandardPostingsReader$SegmentDocsAndPositionsAndPayloadsEnum.advance(
>     [junit]     at
> {noformat}

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message