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

Mike Drob commented on LUCENE-6762:
-----------------------------------

A stack trace representative of the issue (this is from LUCENE 4.4)

{noformat}
java.io.FileNotFoundException: /path/to/index/_879r.si (No such file or 
directory)
        at java.io.RandomAccessFile.open(Native Method)
        at java.io.RandomAccessFile.<init>(RandomAccessFile.java:241)
        at 
org.apache.lucene.store.MMapDirectory.openInput(MMapDirectory.java:193)
        at 
org.apache.lucene.codecs.lucene40.Lucene40SegmentInfoReader.read(Lucene40SegmentInfoReader.java:50)
        at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:334)
        at org.apache.lucene.index.SegmentInfos$1.doBody(SegmentInfos.java:380)
        at 
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:812)
        at 
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:663)
        at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:376)
        at org.apache.lucene.index.CheckIndex.checkIndex(CheckIndex.java:382)
        at org.apache.lucene.index.CheckIndex.main(CheckIndex.java:1854)
{noformat}

You can fake out the sanity checks by copying some other *.si file in place, 
and initial impression is that the tool works.

> CheckIndex cannot "fix" indexes that have individual segments with missing or 
> corrupt .si files because sanity checks will fail trying to read the index 
> initially.
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-6762
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6762
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Mark Miller
>            Priority: Minor
>
> Seems like we should still be able to partially recover by dropping these 
> segments with CheckIndex.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to