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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.2
    • Fix Version/s: 2.4
    • Component/s: core/other
    • Labels:
      None
    • Lucene Fields:
      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

            • Assignee:
              Unassigned
              Reporter:
              torbjok Torbjørn Køhler
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: