Re: Obtain Lock file timeout during deleteDocument()

2007-05-30 Thread Martin Kobele
On Wednesday 30 May 2007 11:53:09 Martin Kobele wrote: > On Wednesday 30 May 2007 11:49:41 Michael McCandless wrote: > > You are only using a single instance of IndexReader, right? If for > > example you try to make a new instance of IndexReader and then call > > deleteDocument on that new one, th

Re: Obtain Lock file timeout during deleteDocument()

2007-05-30 Thread Martin Kobele
On Wednesday 30 May 2007 11:49:41 Michael McCandless wrote: > "Martin Kobele" <[EMAIL PROTECTED]> wrote: > > I was trying to find an answer to this. > > I call IndexReader.deleteDocument() for the _first_ time. > > If my index has several segments, my IndexReader is actually a > > MultiReader. The

Re: Obtain Lock file timeout during deleteDocument()

2007-05-30 Thread Michael McCandless
"Martin Kobele" <[EMAIL PROTECTED]> wrote: > I was trying to find an answer to this. > I call IndexReader.deleteDocument() for the _first_ time. > If my index has several segments, my IndexReader is actually a MultiReader. > Therefore the variable directoryOwner is set to true and as the first st

Obtain Lock file timeout during deleteDocument()

2007-05-30 Thread Martin Kobele
Hi, I am a little confused, probably, because I missed some detail when looking through the code of lucene 2.1. Scenario: Deleting documents works for a while, eventually, I get the exception that obtaining the lock files has timed out. I was trying to find an answer to this. I call IndexRead