On Mon, May 20, 2013 at 9:22 AM, Geoff Cooney <[email protected]> wrote: >> The problem is we can't reliably differentiate commit-in-progress from >> a corrupt first commit... > > I think you can tell them apart with high probability because the checksum > is off by exactly one(at least in lucene 3.5 where I'm looking). It does > seem dangerous to rely on an implementation detail of the pre-commit like > this, though. Is there a reason lucene couldn't write a "isCommitted" byte > to segments_n and use this byte to detect pre-committed segments reliably?
I'll open a new issue to explore these ideas ... it would be best if we could detect "incomplete first commit". Mike McCandless http://blog.mikemccandless.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
