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

Arrange events so cloner onCompletion is never run with lock held

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.4
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Repl 2020-01-13, Repl 2020-01-27, Repl 2020-02-10
    • 0

      Since we need the initial sync mutex in the onCompletion routine of the cloners, and we cannot guarantee this routine does not run in-line with its creation (because executors may not schedule), we need to delay completion of the cloners until we can release the lock. This can be accomplished by waiting on an executor event (which, on shutdown, will trigger the callback appropriately).

            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: