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

Deadlock for some Query objects in the equals method (f.ex. PhraseQuery) in a concurrent environment

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3.2
    • 2.4
    • core/other
    • None
    • New, Patch Available

    Description

      Some Query objects in lucene 2.3.2 (and previous versions) have internal variables using Vector. These variables are used during the call to the equals method. In a concurrent environment a deadlock might occur. The attached code example shows this happening in lucene 2.3.2, but the patch in LUCENE-1346 fixes this issue (though that doesn't seem to be the intention of that patch according to the description

      Attachments

        1. TestDeadLock.java
          1 kB
          Torbjørn Køhler

        Activity

          People

            Unassigned Unassigned
            torbjok Torbjørn Køhler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: