lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Goetzke" <uwe.goet...@healy-hudson.com>
Subject AW: MergePolicy$MergeException because of FileNotFoundException because wrong path to index-file
Date Mon, 31 Aug 2009 15:46:09 GMT
Ups, sorry 2.4.1

Thx

 Uwe Goetzke

-----Ursprüngliche Nachricht-----
Von: Uwe Schindler [mailto:uwe@thetaphi.de] 
Gesendet: Montag, 31. August 2009 17:42
An: java-user@lucene.apache.org
Betreff: RE: MergePolicy$MergeException because of FileNotFoundException because wrong path
to index-file

Which Lucene Version? The RC2 of 2.9?

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de

> -----Original Message-----
> From: Uwe Goetzke [mailto:uwe.goetzke@healy-hudson.com]
> Sent: Monday, August 31, 2009 5:40 PM
> To: java-user@lucene.apache.org
> Subject: MergePolicy$MergeException because of FileNotFoundException
> because wrong path to index-file
> 
> We have an IndexWriter.optimize running on 4 Proc Xenon Java 1.5 Win2003
> machine.
> We get a repeatable FileNotFoundException because the path to the file
> is wrong:
> 
> D:\data0\impact\ordering\prod\work\search_index\s_index1251456210140_0.c
> fs
> Instead of
> D:\data0\impact\ordering\prod\work\search_index\s_index1251456210140\_0.
> cfs
> 
> I have no idea what is different here because we use the same code
> successfully on other machines (even multi-core)
> 1. 2009.08.28 13:10:30 :
> [B:600000043][N:org.apache.lucene.index.MergePolicy$MergeException]
> org.apache.lucene.index.MergePolicy$MergeException:
> java.io.FileNotFoundException:
> D:\data0\impact\ordering\prod\work\search_index\s_index1251456210140_0.c
> fs (The system cannot find the file specified)
> at
> org.apache.lucene.index.ConcurrentMergeScheduler.handleMergeException(Co
> ncurrentMergeScheduler.java:309)
> at
> org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(Concurr
> entMergeScheduler.java:286)
> Caused by: java.io.FileNotFoundException:
> D:\data0\impact\ordering\prod\work\search_index\s_index1251456210140_0.c
> fs (The system cannot find the file specified)
> at java.io.RandomAccessFile.open(Native Method)
> at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
> at
> org.apache.lucene.store.FSDirectory$FSIndexInput$Descriptor.<init>(FSDir
> ectory.java:552)
> at
> org.apache.lucene.store.FSDirectory$FSIndexInput.<init>(FSDirectory.java
> :582)
> at org.apache.lucene.store.FSDirectory.openInput(FSDirectory.java:488)
> at
> org.apache.lucene.index.CompoundFileReader.<init>(CompoundFileReader.jav
> a:70)
> at
> org.apache.lucene.index.SegmentReader.initialize(SegmentReader.java:321)
> at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:306)
> at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:260)
> at
> org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:4220)
> at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:3884)
> at
> org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMerge
> Scheduler.java:205)
> at
> org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(Concurr
> entMergeScheduler.java:260)
> 2. 2009.08.28 13:10:31 : [B:600000043][N:java.io.IOException]
> java.io.IOException: background merge hit exception: _0:c71339->_0
> _1:c36232->_0 _2:c37691->_0 _3:c29335->_0 _4:c29954->_0 _5:c33617->_0
> _6:c37092->_0 _7:c35483->_0 _8:c25244->_0 _9:c31566->_0 _a:c4891->_0
> into _b [optimize]
> at org.apache.lucene.index.IndexWriter.optimize(IndexWriter.java:2273)
> at org.apache.lucene.index.IndexWriter.optimize(IndexWriter.java:2218)
> at org.apache.lucene.index.IndexWriter.optimize(IndexWriter.java:2198)
> 
> I have looked through the code of FSDirectory
> // Inherit javadoc
>   public IndexInput openInput(String name, int bufferSize) throws
> IOException {
>     ensureOpen();
>     return new FSIndexInput(new File(directory, name), bufferSize);
>   }
> 
> Checking further, one would assume that in Win32FileSystem the following
> would be not set
> 	slash = ((String) AccessController.doPrivileged(
>               new GetPropertyAction("file.separator"))).charAt(0);
> 
> Which sounds more than strange to me...
> 
> Any idea?
> 
> Regards
> 
> Uwe Goetzke
> 
> 
> -----------------------------------------------------------------------
> Healy Hudson GmbH - D-55252 Mainz Kastel
> Geschaftsfuhrer Christian Konhauser - Amtsgericht Wiesbaden HRB 12076
> 
> Diese Email ist vertraulich. Wenn Sie nicht der beabsichtigte Empfanger
> sind, durfen Sie die Informationen nicht offen legen oder benutzen. Wenn
> Sie diese Email durch einen Fehler bekommen haben, teilen Sie uns dies
> bitte umgehend mit, indem Sie diese Email an den Absender zuruckschicken.
> Bitte loschen Sie danach diese Email.
> This email is confidential. If you are not the intended recipient, you
> must not disclose or use this information contained in it. If you have
> received this email in error please tell us immediately by return email
> and delete the document.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org



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


-----------------------------------------------------------------------
Healy Hudson GmbH - D-55252 Mainz Kastel
Geschäftsführer Christian Konhäuser - Amtsgericht Wiesbaden HRB 12076

Diese Email ist vertraulich. Wenn Sie nicht der beabsichtigte Empfänger sind, dürfen Sie
die Informationen nicht offen legen oder benutzen. Wenn Sie diese Email durch einen Fehler
bekommen haben, teilen Sie uns dies bitte umgehend mit, indem Sie diese Email an den Absender
zurückschicken. Bitte löschen Sie danach diese Email.
This email is confidential. If you are not the intended recipient, you must not disclose or
use this information contained in it. If you have received this email in error please tell
us immediately by return email and delete the document.


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


Mime
View raw message