[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: |
|
||||||||||||
| 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:
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: |