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

Make onConfirmedSet update config.shards serially

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.4.0-rc6, 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v4.4
    • Service arch 2020-05-04, Service arch 2020-05-18
    • 21

      While onConfirmedSet is called synchronously, it schedules ShardRegistry::updateReplicaSetOnConfigServer through a thread pool task executor. 

      A single node may call onConfirmedSet serially several times at almost the same time - it's possible for the scheduled threads to pause and ordering to not be upheld. 

            Assignee:
            haley.connelly@mongodb.com Haley Connelly
            Reporter:
            haley.connelly@mongodb.com Haley Connelly
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: