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

Do not wait for mongos retargeting in initial sync hook

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Fully Compatible
    • Repl 2023-03-06

      In the initial sync python hook, as part of pausing the background thread we currently wait for mongos to retarget all shards.

      In order to ensure that the mongos can target all the primaries nodes of all the replicasets in the cluster we call collStats for every existing collection/view. This logic is just a best effort and doesn't provide strong guarantee, in fact if a shard doesn't contain any data for any collection mongos will not try to target it at all.

      In SERVER-72858 we already removed the same logic from the stepdown hook.

            Assignee:
            lingzhi.deng@mongodb.com Lingzhi Deng
            Reporter:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: