You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by bu...@apache.org on 2004/11/11 02:00:27 UTC

DO NOT REPLY [Bug 32171] New: - Lock obtain time out errors when opening readers and writers

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32171>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32171

Lock obtain time out errors when opening readers and writers

           Summary: Lock obtain time out errors when opening readers and
                    writers
           Product: Lucene
           Version: 1.4
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Other
        AssignedTo: lucene-dev@jakarta.apache.org
        ReportedBy: yahootintin-lucene@yahoo.com


The attached Java file shows a locking issue that occurs with Lucene 1.4.2.

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.

I am able to get the error in less than 5 minutes when running this on Windows
XP and Mac OS X.

Any help is appreciated.

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