Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-13420

the notifier and syncSourceFeedback threads can reach a deadlock

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.6.0-rc2
    • Fix Version/s: 2.6.0-rc3
    • Component/s: Replication
    • Labels:
      None
    • Operating System:
      ALL

      Description

      In connectOplogNotifier, the notifier thread grabs bgsync's _mutex and then calls syncSourceFeedback.connect() which grabs SyncSourceFeedback's _mtx and _connmtx. Meanwhile SyncSourceFeedback's run() loop grabs its _mtx and _connmtx and then calls bgsync's getSyncTarget() which grabs bgsync's _mutex. If each of these threads grabs their first lock, we end up deadlocked.

        Attachments

          Activity

            People

            Assignee:
            matt.dannenberg Matt Dannenberg
            Reporter:
            matt.dannenberg Matt Dannenberg
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: