Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-175

Deadlock when invoking queries concurrently

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 5.5.1.Final, 6.0.0.Final
    • 5.5.0.Final
    • None
    • None

      I have a query that I want to execute from multiple threads using statefulKnowledgeSession.getQueryResults. One of the threads wants to invoke lock.writeLock().lock() in the 105th line of UpgradableReentrantReadWriteLock. The problem is that the other threads already own the readLock and they cannot proceed until the first query thread finishes with its job. They will wait for each other.
      I experienced the same problem with 5.4.0.Final as well.

            mfusco@redhat.com Mario Fusco
            gyongyga Gabor Gyongyi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: