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: 3.2, 2.9.4
            Reporter: Mark Harwood
         Attachments: BadSegmentsFileTest.java

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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to