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


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]

Reply via email to