lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LUCENE-1204) IndexWriter.deleteDocuments bug
Date Thu, 06 Mar 2008 17:10:58 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-1204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Michael McCandless updated LUCENE-1204:
---------------------------------------

    Attachment: LUCENE-1204.take2.patch

I think this is a false alarm.

The assertion that's failing is this:

  assertTrue(termDocs1.next());

where that termDocs was just seek'd to a term seen in the id field.

But it can legitimately be false if we deleted the doc and didn't
replace it.

I modified the test to accept a false return here, if so, go and
verify the other index also returns a corresponding false.  Attached
new version of the patch.

Yonik does that sound right?

If so I'll commit this change to the test (it's a good addition!).

> IndexWriter.deleteDocuments bug
> -------------------------------
>
>                 Key: LUCENE-1204
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1204
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>            Reporter: Yonik Seeley
>            Assignee: Michael McCandless
>         Attachments: LUCENE-1204.patch, LUCENE-1204.take2.patch
>
>
> IndexWriter.deleteDocuments() fails random testing

-- 
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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message