Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-1048

Lock.obtain(timeout) behaves incorrectly for large timeouts

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2
    • 2.3
    • core/store
    • None
    • New

    Description

      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

      Attachments

        1. LUCENE-1048.patch
          3 kB
          Michael McCandless

        Activity

          People

            mikemccand Michael McCandless
            mikemccand Michael McCandless
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: