Issue Details (XML | Word | Printable)

Key: LUCENE-1198
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Michael McCandless
Reporter: Michael McCandless
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Lucene - Java

Exception in DocumentsWriter.ThreadState.init leads to corruption

Created: 01/Mar/08 01:30 PM   Updated: 08/May/08 07:47 PM
Return to search
Component/s: Index
Affects Version/s: 2.3
Fix Version/s: 2.3.2, 2.4

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works LUCENE-1198.patch 2008-03-01 01:32 PM Michael McCandless 5 kB

Lucene Fields: New
Resolution Date: 02/Mar/08 11:23 PM


 Description  « Hide
If an exception is hit in the init method, DocumentsWriter incorrectly
increments numDocsInRAM when in fact the document is not added.

Spinoff of this thread:

http://markmail.org/message/e76hgkgldxhakuaa

The root cause that led to the exception in init was actually due to
incorrect use of Lucene's APIs (one thread still modifying the
Document while IndexWriter.addDocument is adding it) but still we
should protect against any exceptions coming out of init.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Michael McCandless made changes - 01/Mar/08 01:32 PM
Field Original Value New Value
Attachment LUCENE-1198.patch [ 12376901 ]
Michael McCandless made changes - 02/Mar/08 11:23 PM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
Hoss Man made changes - 11/Mar/08 07:28 PM
Fix Version/s 2.3.2 [ 12313057 ]
Michael Busch made changes - 08/May/08 07:47 PM
Status Resolved [ 5 ] Closed [ 6 ]