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

Do not wait for mongos retargeting in stepdown hook

    • Fully Compatible
    • ALL
    • Sharding EMEA 2023-01-23, Sharding EMEA 2023-02-06

      In the python stepdown hook, as part of pausing the stepdown 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 wrong in many ways:

      • If a shard doesn't contain any data for any collection mongos will not try to target it at all.
      • collStats command can't be executed on views.

      With all probability waiting for the mongos to retarget all shards is not needed at all in the python stepdown hook. Thus the goal of this ticket is to remove this logic.

            Assignee:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Reporter:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: