Issue Details (XML | Word | Printable)

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

IndexWriter can flush too early when flushing by RAM usage

Created: 29/Feb/08 12:38 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

Lucene Fields: New
Resolution Date: 29/Feb/08 12:42 PM


 Description  « Hide
There is a silly bug in how DocumentsWriter tracks its RAM usage:
whenever term vectors are enabled, it incorrectly counts the space
used by term vectors towards flushing, when in fact this space is
recycled per document.

This is not a functionality bug. All it causes is flushes to happen
too frequently, and, IndexWriter will use less RAM than you asked it
to. To work around it you can simply give it a bigger RAM buffer.

I will commit a fix shortly.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.