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

Do not wait for mongos retargeting in initial sync hook

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • None
    • None
    • None
    • Replication
    • Fully Compatible
    • Repl 2023-03-06

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: