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

Release RSM's mutex before notifying replica set change listener

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.4.0-rc8, 4.7.0
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v4.4
    • Sharding 2020-06-01, Sharding 2020-06-15
    • 18

      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.

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

              Created:
              Updated:
              Resolved: