lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: After kill -9 index was corrupt
Date Mon, 11 Sep 2006 14:54:46 GMT
Yonik Seeley wrote:
> On 9/11/06, Michael McCandless <lucene@mikemccandless.com> wrote:
>> However, I do think it would be a good idea to [optionally] add a
>> sync() call on committing the segments file to still be robust to OS /
>> machine crashing... it would slow down performance of indexing but
>> hopefully not by too much since the segments file is small.
> 
> To increase crash resilience, one would want to sync all the segment
> files *before* writing the new segments file.  Of course it's not
> always easy to ensure data is actually on stable storage:
> http://brad.livejournal.com/2116715.html

Ahh yes you're right.

And indeed even with sync. writing of all the segments files, the hard 
drives themselves often cache writes by default these days.

Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message