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] - Lock obtain time out errors when opening readers and writers
Date Thu, 16 Dec 2004 06:09: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





------- Additional Comments From john.wang@gmail.com  2004-12-16 07:09 -------
Created an attachment (id=13764)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=13764&action=view)
a lock implementation using java nio FSLock object

I was able to implement this problem very quickly.

I implemented a Lock object using java.nio.channels.FileLock object (FSLock),
and reimplemented FSDirectory.makeLock by returning the FSLock object. And the
problem disappeared.

Maybe lucene should consider using the new java.nio feature of file locking
instead of the cumbersome lock file.

-John

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
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