[SERVER-73178] Do not wait for mongos retargeting in initial sync hook Created: 22/Jan/23  Updated: 29/Oct/23  Resolved: 23/Feb/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0

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

Issue Links:
Related
is related to SERVER-72858 Do not wait for mongos retargeting in... Closed
Assigned Teams:
Replication
Backwards Compatibility: Fully Compatible
Sprint: Repl 2023-03-06
Participants:

 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.



 Comments   
Comment by Githook User [ 23/Feb/23 ]

Author:

{'name': 'Lingzhi Deng', 'email': 'lingzhi.deng@mongodb.com', 'username': 'ldennis'}

Message: SERVER-73178: Do not wait for mongos retargeting in initial sync hook
Branch: master
https://github.com/mongodb/mongo/commit/b94458e0bb7fcefcef0f081716a0cd018bc53215

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