Re: FileNotFoundException during indexing

2008-08-03 Thread Michael McCandless
Wojtek212 wrote: You were right I had 2 IndexWriters. I've checked again and it turned out I had 2 IndexManagers loaded by 2 different classloaders, so even if stored it in static Map, it didn't help. Phew! That's tricky (two different classloaders). Good sleuthing Anyway thanks for

Re: FileNotFoundException during indexing

2008-08-03 Thread Wojtek212
ing wrking IndexWriter? Or should these operations be synchronized? -- View this message in context: http://www.nabble.com/FileNotFoundException-during-indexing-tp18766343p18796641.html Sent from the Lucene - Java Users mailing list archive at

Re: FileNotFoundException during indexing

2008-08-01 Thread Michael McCandless
pache.lucene.index.SegmentReader.get(SegmentReader.java:262) at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:205) at org.apache.lucene.index.IndexWriter.applyDeletes(IndexWriter.java: 3441) at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:2638) at

Re: FileNotFoundException during indexing

2008-08-01 Thread Wojtek212
.get(SegmentReader.java:205) at org.apache.lucene.index.IndexWriter.applyDeletes(IndexWriter.java:3441) at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:2638) at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:2523) at org.apache.

Re: FileNotFoundException during indexing

2008-08-01 Thread Wojtek212
x27;t see the reason of such behaviour... -- View this message in context: http://www.nabble.com/FileNotFoundException-during-indexing-tp18766343p18773824.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. ---

Re: FileNotFoundException during indexing

2008-08-01 Thread Michael McCandless
ex.ConcurrentMergeScheduler $MergeThread.run(ConcurrentMergeScheduler.java:240) So if the LockObtainFailedException doesn't occur may I assume that there are not 2 indexers writing at the same time? Mike, what do you think? Above test was made on lucene 2.3.2. -- View this message in context:

Re: FileNotFoundException during indexing

2008-08-01 Thread Wojtek212
y I assume that there are not 2 indexers writing at the same time? Mike, what do you think? Above test was made on lucene 2.3.2. -- View this message in context: http://www.nabble.com/FileNotFoundException-during-indexing-tp18766343p18772749.html Sent from the Lucene - Java

Re: FileNotFoundException during indexing

2008-08-01 Thread Michael McCandless
ished? It's the only one situation I can imagine that there 2 IndexWriters... -- View this message in context: http://www.nabble.com/FileNotFoundException-during-indexing-tp18766343p18769652.html Sent from the Lucene - Java Users mailing l

Re: FileNotFoundException during indexing

2008-08-01 Thread Michael McCandless
Wojtek212 wrote: Hi Mike, I'm sharing one instance of IndexManager across all threads and as I've noticed only this one is used during indexing. OK, maybe triple check this -- because that's the only way in your code I can see 2 IWs being live at once. I'm unlocking before every inde

Re: FileNotFoundException during indexing

2008-08-01 Thread Wojtek212
its work. Does IndexWriter executes some threads and doesn't wait when they are finished? It's the only one situation I can imagine that there 2 IndexWriters... -- View this message in context: http://www.nabble.com/FileNotFoundException-during-indexing-tp18766343p18769652.html Sent fro

Re: FileNotFoundException during indexing

2008-07-31 Thread Michael McCandless
during indexing but the exception occurs. Does anybody have idea what can be a reason? -- View this message in context: http://www.nabble.com/FileNotFoundException-during-indexing-tp18766343p18766343.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. ---

FileNotFoundException during indexing

2008-07-31 Thread Wojtek212
ng during indexing but the exception occurs. Does anybody have idea what can be a reason? -- View this message in context: http://www.nabble.com/FileNotFoundException-during-indexing-tp18766343p18766343.html Sent from the Lucene - Java Users mailing list archive at Nabble.com.