RE: Lucene 2.1: java.io.IOException: Lock obtain timed out: SimpleFSLock@

2007-03-02 Thread Michael McCandless
"Jerome Chauvin" wrote: > Thanks Michael for your answer, but following check of our processing, it > appears all the updates of the index are made in a single thread. > Actually, > this kind of exception is thrown during a heavy batch processing. This > processing is not multi-threaded. Do you a

RE: Lucene 2.1: java.io.IOException: Lock obtain timed out: SimpleFSLock@

2007-03-02 Thread Jerome Chauvin
.org Objet : Re: Lucene 2.1: java.io.IOException: Lock obtain timed out: SimpleFSLock@ "Jerome Chauvin" <[EMAIL PROTECTED]> wrote: > We encounter issues while updating the lucene index, here is the stack > trace: > > Caused by: java.io.IOException: Lock obtain timed

Re: Lucene 2.1: java.io.IOException: Lock obtain timed out: SimpleFSLock@

2007-03-01 Thread Michael McCandless
"Jerome Chauvin" <[EMAIL PROTECTED]> wrote: > We encounter issues while updating the lucene index, here is the stack > trace: > > Caused by: java.io.IOException: Lock obtain timed out: > SimpleFSLock@/data/www/orcanta/lucene/store1/write.lock > at org.apache.

Lucene 2.1: java.io.IOException: Lock obtain timed out: SimpleFSLock@

2007-03-01 Thread Jerome Chauvin
All, We encounter issues while updating the lucene index, here is the stack trace: Caused by: java.io.IOException: Lock obtain timed out: SimpleFSLock@/data/www/orcanta/lucene/store1/write.lock at org.apache.lucene.store.Lock.obtain(Lock.java:69) at

Re: Lock obtain timed out SimpleFSLock

2007-01-25 Thread Mark Miller
But, locking should be fine even for this "hammering" use case (and if it's not, that's a bug, and I'd really like to know about it!). I have hammered over 2.5 million 5-10k docs into an index this way (a realtime system that I had not yet added a special load call to) and had 0 problems. On

Re: Lock obtain timed out SimpleFSLock

2007-01-25 Thread maureen tanuwidjaja
Hi Erick and Mike Really thanks a lot for the advice... =) I will fix my code..I'll let you guys know if any problem arises. Many thanks and best regards ^ ^ MauReen Michael McCandless <[EMAIL PROTECTED]> wrote: Erick Erickson wrote: > Don't do it that way. You're ope

Re: Lock obtain timed out SimpleFSLock

2007-01-25 Thread Michael McCandless
Erick Erickson wrote: Don't do it that way. You're opening and closing your indexwrwiter for each document, which is extremely wasteful. And given locking has been a source of much discussion on this list, it's not clear that locking will withstand this kind of hammering. You want to do something

Re: Lock obtain timed out SimpleFSLock

2007-01-25 Thread Erick Erickson
Don't do it that way. You're opening and closing your indexwrwiter for each document, which is extremely wasteful. And given locking has been a source of much discussion on this list, it's not clear that locking will withstand this kind of hammering. You want to do something like IndexWriter writ

Re: Lock obtain timed out SimpleFSLock

2007-01-25 Thread maureen tanuwidjaja
Hi Mike,thanks for the reply... 1.Here is the class that I use for indexing.. package edu.ntu.ce.maureen.index; import org.apache.lucene.index.IndexWriter; import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.analysis.standard.StandardAnalyzer; import org.

Re: Lock obtain timed out SimpleFSLock

2007-01-25 Thread Erick Erickson
One way to mitigate the cost of this kind of thing is to create a series of indexes on portions of your corpus and then merge them. Say you have 10,000 documents. Create 10 separate indexes of 1,000 documents each then use IndexWriter.addIndexes to make them all into a single index. This pre-supp

Re: Lock obtain timed out SimpleFSLock

2007-01-25 Thread Michael McCandless
maureen tanuwidjaja wrote: I am indexing thousands of XML document,then it stops after indexing for about 7 hrs ... Indexing C:\sweetpea\wikipedia_xmlfiles\part-0\37027.xml java.io.IOException: Lock obtain timed out: [EMAIL PROTECTED]:\sweetpea\dual_index\DI\write.lock java.lang

Lock obtain timed out SimpleFSLock

2007-01-25 Thread maureen tanuwidjaja
Hi, I am indexing thousands of XML document,then it stops after indexing for about 7 hrs ... Indexing C:\sweetpea\wikipedia_xmlfiles\part-0\37003.xml Indexing C:\sweetpea\wikipedia_xmlfiles\part-0\37004.xml Indexing C:\sweetpea\wikipedia_xmlfiles\part-0\37008.xml Indexing C:\swee