Qpid
  1. Qpid
  2. QPID-4144

HA broker deadlocks on broeker::QueueRegistry lock and ha::Primary lock

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.17
    • Fix Version/s: 0.18
    • Component/s: C++ Clustering
    • Labels:
      None

      Description

      Running tests repeatedly, the broker deadlocked with the attached stack trace.

      The problem call sequences are:
      1. QueueRegistry::destroy takes QueuerRegistry lock > ConfigurationObserver::queueDestroy > ha::Primary::queueDestroy takes Primary lock.
      2. ConnectionObserver::opened cals Primary::opened lock> RemoteBackup>getQueues().eachQueue

      This patch breaks the deadlock at both ends: QueueRegistry no longer holds the lock across the observer call and Primary does not hold the lock across eachQueue.

      1. thread-dump.txt
        23 kB
        Alan Conway

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Alan Conway
            Reporter:
            Alan Conway
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development