lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <yo...@apache.org>
Subject Re: java.io.IOException: Access is denied on java.io.WinNTFileSystem.createFileExclusively
Date Sun, 27 Aug 2006 18:05:13 GMT
On 8/27/06, Doron Cohen <DORONC@il.ibm.com> wrote:
> I plan to submit an update to that patch later today accommodating your
> comments (and others); It will most probably retry for IOExceptions (not
> analyzing the exception text); also, it would return false if the *retry*
> for obtain() failed with exception.

Lock.obtain(timeout) already has retry/timeout logic around
Lock.obtain(), so wouldn't the change to return false on an
IOException be sufficient?  User level applications should then use
obtain(timeout) rather than obtain() unless they want to do
timeout/retry logic themselves.

-Yonik
http://incubator.apache.org/solr Solr, the open-source Lucene search server

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


Mime
View raw message