lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Smiley (JIRA)" <>
Subject [jira] Created: (LUCENE-2645) False assertion of >0 position delta in StandardPostingsWriterImpl
Date Wed, 15 Sep 2010 03:35:33 GMT
False assertion of >0 position delta in StandardPostingsWriterImpl

                 Key: LUCENE-2645
             Project: Lucene - Java
          Issue Type: Bug
          Components: Index
            Reporter: David Smiley
            Priority: Minor

StandardPostingsWriterImpl line 159 is:
    assert delta > 0 || position == 0 || position == -1: "position=" + position + " lastPosition="
+ lastPosition;            // not quite right (if pos=0 is repeated twice we don't catch it)

I enable assertions when I run my unit tests and I've found this assertion to fail when delta
is 0 which occurs when the same position value is sent in twice in arrow.  Once I added RemoveDuplicatesTokenFilter,
this problem went away.  Should I really be forced to add this filter?  I think delta >=
0 would be a better assertion.

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