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

Release RSM's mutex before notifying replica set change listener

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.4.0-rc8, 4.7.0
    • Sharding
    • None
    • Fully Compatible
    • ALL
    • v4.4
    • Sharding 2020-06-01, Sharding 2020-06-15
    • 18

    Description

      In StreamableReplicaSetMonitor::onTopologyDescriptionChangedEvent, we take the RSM's mutex and continue to hold it when notifying the replica set change listener on confirmed set and possible set which updates the ShardRegistry. We should release the RSM's mutex when notifying the RSCL to avoid deadlock with another thread that attempts to access the RSM from the ShardRegistry, namely when another thread is reloading the ShardRegistry and attempts to drop the RSM in question.

      Attachments

        Activity

          People

            janna.golden@mongodb.com Janna Golden
            janna.golden@mongodb.com Janna Golden
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: