lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 32171] New: - Lock obtain time out errors when opening readers and writers
Date Thu, 11 Nov 2004 01:00:27 GMT
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


Mime
View raw message