Issue Details (XML | Word | Printable)

Key: LUCENE-1228
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Doron Cohen
Reporter: Doron Cohen
Votes: 0
Watchers: 0
Operations

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

IndexWriter.commit() does not update the index version

Created: 13/Mar/08 07:19 PM   Updated: 14/Mar/08 11:49 PM
Return to search
Component/s: Index
Affects Version/s: 2.4
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works lucene-1228-commit-reopen.patch 2008-03-13 07:24 PM Doron Cohen 5 kB
Issue Links:
Reference
 

Lucene Fields: Patch Available
Resolution Date: 14/Mar/08 10:35 AM


 Description  « Hide
IndexWriter.commit() can update the index version and generation but the update of version is lost.
As result added documents are not seen by IndexReader.reopen().
(There might be other side effects that I am not aware of).
The fix is 1 line - update also the version in SegmentsInfo.updateGeneration().
(Finding this line involved more lines though... )

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Doron Cohen made changes - 13/Mar/08 07:24 PM
Field Original Value New Value
Attachment lucene-1228-commit-reopen.patch [ 12377824 ]
Doron Cohen made changes - 13/Mar/08 08:16 PM
Affects Version/s 2.3 [ 12312531 ]
Lucene Fields [Patch Available, New] [New, Patch Available]
Affects Version/s 2.3.1 [ 12312975 ]
Doron Cohen made changes - 14/Mar/08 10:35 AM
Resolution Fixed [ 1 ]
Lucene Fields [Patch Available, New] [Patch Available]
Status Open [ 1 ] Resolved [ 5 ]
Hoss Man made changes - 14/Mar/08 11:49 PM
Link This issue is related to LUCENE-1232 [ LUCENE-1232 ]