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

the notifier and syncSourceFeedback threads can reach a deadlock

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.6.0-rc3
    • Affects Version/s: 2.6.0-rc2
    • Component/s: Replication
    • None
    • ALL

      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.

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

              Created:
              Updated:
              Resolved: