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

Release lock before releasing completion guard when executors are shutting down.

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.3
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Repl 2019-12-16
    • 0

      We must make sure we do not hold the InitialSyncer mutex when we free the completion guard in the allDatabaseClonerFuture. Normally this is assured because we've scheduled another callback, which cannot fulfill the completion guard without first taking the lock (which assures that our release of the completion guard will not free it). On shutdown that isn't so.

            Assignee:
            matthew.russotto@mongodb.com Matthew Russotto
            Reporter:
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: