OK, I've opened https://issues.apache.org/jira/browse/LUCENE-1048 to this issue.

Thanks Nikolay!

Mike

"Nikolay Diakov" <[EMAIL PROTECTED]> wrote:
> In Lucene 2.x, in method Lock#obtain(long lockWaitTimeout) I see the 
> following line:
> 
> int maxSleepCount = (int)(lockWaitTimeout / LOCK_POLL_INTERVAL);
> 
> Since I wanted to set the lock timeout to the largest possible, I called 
> the IndexWriter#setDefaultWriteLockTimeout(Long.MAX_VALUE). This 
> produces the effect in the quoted line that we get maxSleepCount a 
> negative number.
> 
> Is this intended?
> 
> Cheers,
>    Nik
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to