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

PrimaryOnlyService should destroy the old instances before launching async rebuild

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Sharding 2022-06-27
    • 33

      The old instances are destroyed at the end of the call of onStepUp when the stack unwinds, but since the new instances are rebuild asynchronously, there is a very small window where the lifetime of the old instance and new instance can overlap.

            Assignee:
            randolph@mongodb.com Randolph Tan
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: