You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by bu...@apache.org on 2005/08/18 14:26:14 UTC
DO NOT REPLY [Bug 36241] New: -
"Cannot rename segments.new to segments"
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36241>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=36241
Summary: "Cannot rename segments.new to segments"
Product: Lucene
Version: 1.4
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Index
AssignedTo: java-dev@lucene.apache.org
ReportedBy: mikko@noromaa.fi
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.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org