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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.17
    • 0.18
    • C++ Clustering
    • 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

        1. thread-dump.txt
          23 kB
          Alan Conway

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: