Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-4144

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: