lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nikolay Diakov <nikolay.dia...@fredhopper.com>
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?

Cheers,
   Nik

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