[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:
Backports
Depends
is depended on by SERVER-71368 Stop excluding tests that drop collec... Closed
Related
is related to SERVER-72858 Do not wait for mongos retargeting in... Closed
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: SERVER-72877 Mongos retargeting logic in stepdown hooks should skip views

(cherry picked from commit ab05cf2179d112a92467de3e454c53f75eee81ba)
Branch: v6.0
https://github.com/mongodb/mongo/commit/5fbe7207babd249273b51bdf4715d6ed4ae51c45

Comment by Githook User [ 17/Jan/23 ]

Author:

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

Message: SERVER-72877 Mongos retargeting logic in stepdown hooks should skip views

(cherry picked from commit ab05cf2179d112a92467de3e454c53f75eee81ba)
(cherry picked from commit 2a549be4fa54909a7c8710c657ad52222e48e382)
Branch: v5.0
https://github.com/mongodb/mongo/commit/ca300aa4e7fa1839ba55ed62249d2fb1510b2d10

Comment by Githook User [ 17/Jan/23 ]

Author:

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

Message: SERVER-72877 Mongos retargeting logic in stepdown hooks should skip views
Branch: master
https://github.com/mongodb/mongo/commit/ab05cf2179d112a92467de3e454c53f75eee81ba

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