Issue Details (XML | Word | Printable)

Key: LUCENE-1044
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Michael McCandless
Reporter: venkat rangan
Votes: 1
Watchers: 4
Operations

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

Behavior on hard power shutdown

Created: 02/Nov/07 07:07 PM   Updated: 23/Feb/09 05:15 PM
Return to search
Component/s: Index
Affects Version/s: None
Fix Version/s: 2.4

Time Tracking:
Not Specified

File Attachments:
  Size
Java Source File Licensed for inclusion in ASF works FSyncPerfTest.java 2007-11-22 02:16 PM Doron Cohen 6 kB
Text File Licensed for inclusion in ASF works LUCENE-1044.patch 2007-11-04 03:28 PM Michael McCandless 6 kB
Text File Licensed for inclusion in ASF works LUCENE-1044.take2.patch 2007-11-04 06:29 PM Michael McCandless 7 kB
Text File Licensed for inclusion in ASF works LUCENE-1044.take3.patch 2007-11-06 10:38 PM Michael McCandless 16 kB
Text File Licensed for inclusion in ASF works LUCENE-1044.take4.patch 2007-11-27 08:14 PM Michael McCandless 7 kB
Text File Licensed for inclusion in ASF works LUCENE-1044.take5.patch 2007-12-11 08:20 PM Michael McCandless 86 kB
Text File Licensed for inclusion in ASF works LUCENE-1044.take6.patch 2008-02-05 10:52 AM Michael McCandless 194 kB
Text File Licensed for inclusion in ASF works LUCENE-1044.take7.patch 2008-02-05 09:19 PM Michael McCandless 205 kB
Text File Licensed for inclusion in ASF works LUCENE-1044.take8.patch 2008-02-08 08:31 PM Michael McCandless 206 kB
Environment: Windows Server 2003, Standard Edition, Sun Hotspot Java 1.5

Lucene Fields: New
Resolution Date: 11/Feb/08 06:59 PM


 Description  « Hide
When indexing a large number of documents, upon a hard power failure (e.g. pull the power cord), the index seems to get corrupted. We start a Java application as an Windows Service, and feed it documents. In some cases (after an index size of 1.7GB, with 30-40 index segment .cfs files) , the following is observed.

The 'segments' file contains only zeros. Its size is 265 bytes - all bytes are zeros.
The 'deleted' file also contains only zeros. Its size is 85 bytes - all bytes are zeros.

Before corruption, the segments file and deleted file appear to be correct. After this corruption, the index is corrupted and lost.

This is a problem observed in Lucene 1.4.3. We are not able to upgrade our customer deployments to 1.9 or later version, but would be happy to back-port a patch, if the patch is small enough and if this problem is already solved.



 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.