lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yahootintin.1247...@bloglines.com
Subject Re: Locking issue
Date Wed, 10 Nov 2004 17:13:27 GMT
> No need to address individuals here.
Sorry about that.  I just respect
the knowledge that you and Otis have about Lucene so that's why I was asking
you specifically.

> With the information provided, I have no idea what
the issue may be.  
Running the small sample file that is attached to the
original message shows how the issue is generated.  It takes less than 5 minutes
to occur on both Windows XP and Mac OS X.


> There certainly is no issue
reading and writing to an index at the same 
> time, but only one process
can be writing/deleting from the index at a 
> time.
That's what I thought.
 I'm seeing otherwise though.

--- Lucene Users List" <lucene-user@jakarta.apache.org
wrote:
On Nov 10, 2004, at 2:17 AM, yahootintin.1247688@bloglines.com wrote:

> > Otis or Erik, do you know if a Reader continously opening should cause

> > the
> > Writer to fail with a "Lock obtain timed out" error?
> 
>
No need to address individuals here.
> 
> With the information provided,
I have no idea what the issue may be.  
> There certainly is no issue reading
and writing to an index at the same 
> time, but only one process can be
writing/deleting from the index at a 
> time.
> 
> 	Erik
> 
> >
> >
--- Lucene Users List"
> > <lucene-user@jakarta.apache.org wrote:
> > The
attached Java file shows a locking
> > issue that occurs with
> >> Lucene.

> >>
> >> One thread opens and closes an IndexReader.
> >  The other thread

> >> opens an IndexWriter, adds a document and then closes
> > the
> >>
IndexWriter.  I would expect that this app should be able to
> >> happily

> > run without an issues.
> >>
> >> It fails with:
> >>   java.io.IOException:
Lock
> > obtain timed out
> >>
> >> Is this expected?  I thought a Reader
could be opened
> > while a
> >> Writer is adding a document.
> >>
> >>
Any help is appreciated.
> >>
> >
> >>
> >> ---------------------------------------------------------------------

> >
> >> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org

> >> For
> > additional commands, e-mail: lucene-user-help@jakarta.apache.org

> >>
> >>
> >
> > ---------------------------------------------------------------------

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

> 
> ---------------------------------------------------------------------

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

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


Mime
View raw message