[SERVER-72877] Mongos retargeting logic in stepdown hooks should skip views Created: 16/Jan/23 Updated: 29/Oct/23 Resolved: 17/Jan/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 5.0.15, 6.3.0-rc0, 6.0.5 |
| 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 | ||||||||||||||||||||
| Backport Requested: |
v6.2, v6.0, v5.0
|
||||||||||||||||||||
| Sprint: | Sharding EMEA 2023-01-23 | ||||||||||||||||||||
| 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 because collStats can't be executed in views. |
| Comments |
| Comment by Githook User [ 17/Jan/23 ] |
|
Author: {'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}Message: (cherry picked from commit ab05cf2179d112a92467de3e454c53f75eee81ba) |
| Comment by Githook User [ 17/Jan/23 ] |
|
Author: {'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}Message: (cherry picked from commit ab05cf2179d112a92467de3e454c53f75eee81ba) |
| Comment by Githook User [ 17/Jan/23 ] |
|
Author: {'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}Message: |