Issue Details (XML | Word | Printable)

Key: LUCENE-1171
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

Make DocumentsWriter more robust on hitting OOM

Created: 08/Feb/08 09:00 PM   Updated: 11/Oct/08 12:49 PM
Return to search
Component/s: Index
Affects Version/s: 2.3
Fix Version/s: 2.4

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works LUCENE-1171.patch 2008-02-08 09:09 PM Michael McCandless 13 kB

Lucene Fields: New
Resolution Date: 11/Feb/08 12:57 PM


 Description  « Hide
I've been stress testing DocumentsWriter by indexing wikipedia, but not
giving enough memory to the JVM, in varying heap sizes to tickle the
different interesting cases. Sometimes DocumentsWriter can deadlock;
other times it will hit a subsequent NPE or AIOOBE or assertion
failure.

I've fixed all the cases I've found, and added some more asserts. Now
it just produces plain OOM exceptions. All changes are contained to
DocumentsWriter.java.

All tests pass. I plan to commit in a day or two!



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Michael McCandless made changes - 08/Feb/08 09:09 PM
Field Original Value New Value
Attachment LUCENE-1171.patch [ 12375111 ]
Michael McCandless made changes - 11/Feb/08 12:57 PM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
Michael McCandless made changes - 11/Oct/08 12:49 PM
Status Resolved [ 5 ] Closed [ 6 ]