Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9850CD782 for ; Wed, 10 Oct 2012 15:57:04 +0000 (UTC) Received: (qmail 63724 invoked by uid 500); 10 Oct 2012 15:57:03 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 63500 invoked by uid 500); 10 Oct 2012 15:57:03 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 63439 invoked by uid 99); 10 Oct 2012 15:57:03 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Oct 2012 15:57:03 +0000 Date: Wed, 10 Oct 2012 15:57:03 +0000 (UTC) From: "B.Nicolotti (JIRA)" To: dev@lucene.apache.org Message-ID: <828430879.20382.1349884623186.JavaMail.jiratomcat@arcas> In-Reply-To: <187104324.15178.1349799004267.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (LUCENE-4467) SegmentReader.loadDeletedDocs FileNotFoundExceptio load _hko_7.del - corrupted index MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LUCENE-4467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13473330#comment-13473330 ] B.Nicolotti commented on LUCENE-4467: ------------------------------------- We deleted the index folder this folder and started from empty index, the system worked without problems all the day indexing the xml produced today, until we had another problem, see below. We've 2 web applications in one tomcat java process that write the index. The two web applications use the same version of Lucene, 3.6.0. May this be a problem? Shouldn't each web application obtain the write.lok before to write the index? The index is small, so I can attach it Many thanks Best regards <<<< Wed Oct 10 17:34:05 CEST 2012:com.siap.WebServices.Utility.UtiIndexerLucene caught an exception: 16801917 java.io.FileNotFoundException e.toString():java.io.FileNotFoundException: _42.fdt, e.getMessage():_42.fdt org.apache.lucene.store.FSDirectory.fileLength(FSDirectory.java:284) org.apache.lucene.index.SegmentInfo.sizeInBytes(SegmentInfo.java:303) org.apache.lucene.index.TieredMergePolicy.size(TieredMergePolicy.java:635) org.apache.lucene.index.TieredMergePolicy.useCompoundFile(TieredMergePolicy.java:613) org.apache.lucene.index.DocumentsWriter.flush(DocumentsWriter.java:593) org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:3580) 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.indexFile(UtiIndexerLucene.java:272) com.siap.WebServices.Utility.UtiLogPrintingThread.run(UtiLogPrintingThread.java:146) Somma controllo versione: Server info:Apache Tomcat/5.5.23@127.0.0.1(tomcatdemo) >>>> > 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.(RandomAccessFile.java:212) > org.apache.lucene.store.SimpleFSDirectory$SimpleFSIndexInput$Descriptor.(SimpleFSDirectory.java:71) > org.apache.lucene.store.SimpleFSDirectory$SimpleFSIndexInput.(SimpleFSDirectory.java:98) > org.apache.lucene.store.NIOFSDirectory$NIOFSIndexInput.(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.(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