On Thu, 5 Jan 2006, Robert Engels wrote:
Well, I think they are supposed to be - that is the reason the segments file is written last. If the segments file is not updated the only problem becomes orphaned files, but the index SHOULD still be consistent. The Lucene index format is quite ingenious in the simplicity in how it does this. As I said I think the underlying reason why it doe snot work sometimes is that if a hard crash (computer failure) occurs before the OS has written ALL the in memory buffers to disk (so the segments file might be committed but the earlier segments are not) - corruption. I writing the files in 'sync' mode would prevent this (at the cost of performance).
If my understanding is correct, ACID guarantees that this sort of mishap doesn't occur. It either *all* goes in or *none* of it, leaving the index unchanged.
Andi.. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]