Issue Details (XML | Word | Printable)

Key: LUCENE-425
Type: Bug Bug
Status: Closed Closed
Resolution: Duplicate
Priority: Major Major
Assignee: Unassigned
Reporter: Mikko Noromaa
Votes: 0
Watchers: 2
Operations

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

"Cannot rename segments.new to segments"

Created: 18/Aug/05 09:26 PM   Updated: 16/Nov/07 02:44 PM
Return to search
Component/s: Index
Affects Version/s: 1.4
Fix Version/s: None

Time Tracking:
Not Specified

Environment:
Operating System: Windows XP
Platform: PC

Bugzilla Id: 36241
Resolution Date: 10/Nov/06 11:24 AM


 Description  « Hide
AddDocument periodically fails with "Cannot rename segments.new to segments".
Sometimes it happens after 10,000 documents, sometimes after 200,000 documents.

My index is placed on a FAT partition. My Lucene version is 1.4.3. I am using
a single IndexWriter object and doing all AddDocuments calls serially from a
single thread.

I saw some discussion about this problem in the mailing lists, but looks like
the problem wasn't completely eliminated yet.

My suggested solutions are as follows:

  • If renameTo() fails, wait some time and retry. After this, apply the other
    methods that are now in FSDirectory.java. Retry them as well after waiting for
    some time.
  • In the IndexWriter constructor, check for 'segments.new' if 'segments'
    cannot be found. This would allow recovery if FSDirectory failed on a previous
    run. Now I have to write the recovery code myself outside of Lucene.


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Jeff Turner made changes - 03/Sep/05 03:30 PM
Field Original Value New Value
issue.field.bugzillaimportkey 36241 12314575
Michael McCandless made changes - 10/Nov/06 11:24 AM
Status Open [ 1 ] Closed [ 6 ]
Assignee Lucene Developers [ java-dev@lucene.apache.org ]
Resolution Duplicate [ 3 ]