-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Testing Infrastructure
-
None
-
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.
- related to
-
SERVER-72877 Mongos retargeting logic in stepdown hooks should skip views
- Closed
-
SERVER-73178 Do not wait for mongos retargeting in initial sync hook
- Closed