[
https://issues.apache.org/jira/browse/LUCENE-1048?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael McCandless updated LUCENE-1048:
---------------------------------------
Attachment: LUCENE-1048.patch
Simple patch that fixes the bug. I also added static constant
Lock.LOCK_OBTAIN_WAIT_FOREVER which if passed as the timeout causes
obtain to keep trying forever. Will commit in a day or two.
> Lock.obtain(timeout) behaves incorrectly for large timeouts
> -----------------------------------------------------------
>
> Key: LUCENE-1048
> URL: https://issues.apache.org/jira/browse/LUCENE-1048
> Project: Lucene - Java
> Issue Type: Bug
> Components: Store
> Affects Versions: 2.2
> Reporter: Michael McCandless
> Assignee: Michael McCandless
> Priority: Minor
> Fix For: 2.3
>
> Attachments: LUCENE-1048.patch
>
>
> Because timeout is a long, but internal values derived from timeout
> are ints, its possible to overflow those internal values into negative
> numbers and cause incorrect behavior.
> Spinoff from this thread:
> http://www.gossamer-threads.com/lists/lucene/java-user/54376
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]