lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: CorruptIndexException when opening Index during first commit
Date Thu, 30 May 2013 15:20:53 GMT
OK I opened https://issues.apache.org/jira/browse/LUCENE-5024 ...

Geoff can you describe your idea there?  Thanks.

Mike McCandless

http://blog.mikemccandless.com


On Thu, May 30, 2013 at 7:35 AM, Michael McCandless
<lucene@mikemccandless.com> wrote:
> On Mon, May 20, 2013 at 9:22 AM, Geoff Cooney <cooney.geoff@gmail.com> 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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message