lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nikolay Diakov <>
Subject - possible bug in lock timeout
Date Wed, 07 Nov 2007 13:21:56 GMT
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?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message