[SERVER-72858] Do not wait for mongos retargeting in stepdown hook Created: 14/Jan/23  Updated: 29/Oct/23  Resolved: 24/Jan/23

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 6.3.0-rc0

Type: Bug Priority: Major - P3
Reporter: Tommaso Tocci Assignee: Tommaso Tocci
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-72877 Mongos retargeting logic in stepdown ... Closed
related to SERVER-73178 Do not wait for mongos retargeting in... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding EMEA 2023-01-23, Sharding EMEA 2023-02-06
Participants:

 Description   

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.



 Comments   
Comment by Githook User [ 24/Jan/23 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: SERVER-72858 Do not wait for mongos retargeting in stepdown hook
Branch: master
https://github.com/mongodb/mongo/commit/70b77cf006fcbe99e1640160b06a144faa5be297

Generated at Thu Feb 08 06:22:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.