lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LUCENE-1048) Lock.obtain(timeout) behaves incorrectly for large timeouts
Date Thu, 08 Nov 2007 11:32:50 GMT

     [ 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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message