lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Willnauer (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-3255) Corrupted segment file not detected and wipes index contents
Date Tue, 28 Jun 2011 16:18:16 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-3255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13056606#comment-13056606
] 

Simon Willnauer commented on LUCENE-3255:
-----------------------------------------

bq. Not sure what to do if we really need to fix this in pre-3.x releases...
there is not much todo really here. I don't see a good way to fix this there. :/ 

> Corrupted segment file not detected and wipes index contents
> ------------------------------------------------------------
>
>                 Key: LUCENE-3255
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3255
>             Project: Lucene - Java
>          Issue Type: Bug
>    Affects Versions: 2.9.4, 3.2
>            Reporter: Mark Harwood
>            Assignee: Michael McCandless
>         Attachments: AllZerosSegmentFile, BadSegmentsFileTest.java, LUCENE-3255_testcase.patch
>
>
> Lucene will happily wipe an existing index if presented with a latest generation segments_n
file of all zeros. File format documentation says segments_N files should start with a format
of -9 but SegmentInfos.read accepts >=0 as valid for backward compatibility reasons.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message