You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "B.Nicolotti (JIRA)" <ji...@apache.org> on 2013/01/07 13:22:12 UTC

[jira] [Commented] (LUCENE-4467) SegmentReader.loadDeletedDocs FileNotFoundExceptio load _hko_7.del - corrupted index

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

B.Nicolotti commented on LUCENE-4467:
-------------------------------------

Hello, we put in test only one web app writing the index, but we had again a problem:

Sat Jan 05 22:30:28 CET 2013:com.siap.WebServices.Utility.UtiIndexerLucene caught an exception: 29361740 org.apache.lucene.index.CorruptIndexException
 e.toString():org.apache.lucene.index.CorruptIndexException: failed to locate current segments_N file,
 e.getMessage():failed to locate current segments_N file
org.apache.lucene.index.IndexFileDeleter.<init>(IndexFileDeleter.java:233)
org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1168)
com.siap.WebServices.Utility.UtiIndexerLucene.delete(UtiIndexerLucene.java:141)
com.siap.WebServices.Utility.SerLogSearch.deleteIdList(SerLogSearch.java:728)
com.siap.WebServices.Utility.SerLogSearch.cleanUnlinked(SerLogSearch.java:650)
com.siap.WebServices.Utility.SerLogSearch.access$0(SerLogSearch.java:582)
com.siap.WebServices.Utility.SerLogSearch$LogOpTimer.run(SerLogSearch.java:155)

from this time on the index didn't work any more:

Sat Jan 05 22:30:28 CET 2013:com.siap.WebServices.Utility.UtiIndexerLucene caught an exception: 3133093 java.io.FileNotFoundException
 e.toString():java.io.FileNotFoundException: /usr/local/WS_DynPkg/logs/index/_2da_10.del (No such file or directory),
 e.getMessage():/usr/local/WS_DynPkg/logs/index/_2da_10.del (No such file or directory)
java.io.RandomAccessFile.open(Native Method)
java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
org.apache.lucene.store.SimpleFSDirectory$SimpleFSIndexInput$Descriptor.<init>(SimpleFSDirectory.java:71)
org.apache.lucene.store.SimpleFSDirectory$SimpleFSIndexInput.<init>(SimpleFSDirectory.java:98)
org.apache.lucene.store.NIOFSDirectory$NIOFSIndexInput.<init>(NIOFSDirectory.java:92)
org.apache.lucene.store.NIOFSDirectory.openInput(NIOFSDirectory.java:79)
org.apache.lucene.store.FSDirectory.openInput(FSDirectory.java:345)
org.apache.lucene.util.BitVector.<init>(BitVector.java:266)
org.apache.lucene.index.SegmentReader.loadDeletedDocs(SegmentReader.java:160)
org.apache.lucene.index.SegmentReader.get(SegmentReader.java:120)
org.apache.lucene.index.IndexWriter$ReaderPool.get(IndexWriter.java:696)
org.apache.lucene.index.IndexWriter$ReaderPool.get(IndexWriter.java:671)
org.apache.lucene.index.BufferedDeletesStream.applyDeletes(BufferedDeletesStream.java:244)
org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:3608)
org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:3545)
org.apache.lucene.index.IndexWriter.closeInternal(IndexWriter.java:1852)
org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1812)
org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1776)
com.siap.WebServices.Utility.UtiIndexerLucene.delete(UtiIndexerLucene.java:145)
com.siap.WebServices.Utility.SerLogSearch.deleteIdList(SerLogSearch.java:728)
com.siap.WebServices.Utility.SerLogSearch.cleanUnlinked(SerLogSearch.java:650)
com.siap.WebServices.Utility.SerLogSearch.access$0(SerLogSearch.java:582)
com.siap.WebServices.Utility.SerLogSearch$LogOpTimer.run(SerLogSearch.java:155)

how do I run 

CheckIndex -fix

?

Many thanks

Best regards

Bartolomeo
                
> SegmentReader.loadDeletedDocs FileNotFoundExceptio load _hko_7.del - corrupted index
> ------------------------------------------------------------------------------------
>
>                 Key: LUCENE-4467
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4467
>             Project: Lucene - Core
>          Issue Type: Bug
>    Affects Versions: 3.6
>         Environment: Currently using:
> java -version
> java version "1.5.0_13"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05)
> Java HotSpot(TM) Client VM (build 1.5.0_13-b05, mixed mode, sharing)
> Tomcat 5.5
> lucene 3.6.0
>            Reporter: B.Nicolotti
>         Attachments: index.zip
>
>
> We're using lucene to index XML. We've had it in test on a server for some weeks with no problem, but today we've got the error below and the index seems no longer usable.
> Could you please tell us 
> 1) is there a way to recover the index?
> 2) is there a way to avoid this error?
> I can supply the index if needed
> many thanks
> Tue Oct 09 17:41:02 CEST 2012:com.siap.WebServices.Utility.UtiIndexerLucene caught an exception: 32225010 java.io.FileNotFoundException
>  e.toString():java.io.FileNotFoundException: /usr/local/WS_DynPkg/logs/index/_hko_7.del (No such file or directory),
>  e.getMessage():/usr/local/WS_DynPkg/logs/index/_hko_7.del (No such file or directory)
> java.io.RandomAccessFile.open(Native Method)
> java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
> org.apache.lucene.store.SimpleFSDirectory$SimpleFSIndexInput$Descriptor.<init>(SimpleFSDirectory.java:71)
> org.apache.lucene.store.SimpleFSDirectory$SimpleFSIndexInput.<init>(SimpleFSDirectory.java:98)
> org.apache.lucene.store.NIOFSDirectory$NIOFSIndexInput.<init>(NIOFSDirectory.java:92)
> org.apache.lucene.store.NIOFSDirectory.openInput(NIOFSDirectory.java:79)
> org.apache.lucene.store.FSDirectory.openInput(FSDirectory.java:345)
> org.apache.lucene.util.BitVector.<init>(BitVector.java:266)
> org.apache.lucene.index.SegmentReader.loadDeletedDocs(SegmentReader.java:160)
> org.apache.lucene.index.SegmentReader.get(SegmentReader.java:120)
> org.apache.lucene.index.IndexWriter$ReaderPool.get(IndexWriter.java:696)
> org.apache.lucene.index.IndexWriter$ReaderPool.get(IndexWriter.java:671)
> org.apache.lucene.index.BufferedDeletesStream.applyDeletes(BufferedDeletesStream.java:244)
> org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:3608)
> org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:3545)
> org.apache.lucene.index.IndexWriter.closeInternal(IndexWriter.java:1852)
> org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1812)
> org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1776)
> com.siap.WebServices.Utility.UtiIndexerLucene.delete(UtiIndexerLucene.java:143)
> com.siap.WebServices.Utility.UtiIndexerLucene.indexFile(UtiIndexerLucene.java:221)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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