[SERVER-59885] Wait for replica set to stabilize before validating collections Created: 10/Sep/21  Updated: 29/Oct/23  Resolved: 07/Oct/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.2.0, 5.0.4, 5.1.0-rc2

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

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.1, v5.0
Sprint: Repl 2021-09-20, Repl 2021-10-04, Repl 2021-10-18
Participants:
Linked BF Score: 25

 Description   

We should make sure that the replica set has stabilized (i.e. the nodes are either primary or secondary) before performing validation.

We can do this by calling awaitSecondaryNodes before we validate, here (unsharded) and here (sharded).



 Comments   
Comment by Githook User [ 21/Oct/21 ]

Author:

{'name': 'Vishnu Kaushik', 'email': 'vishnu.kaushik@mongodb.com', 'username': 'kauboy26'}

Message: SERVER-59885 Wait for replica set to stabilize before validating collections
Branch: v5.0
https://github.com/mongodb/mongo/commit/ea3cebcde6e9f01894826d20c76295837b3e6939

Comment by Githook User [ 21/Oct/21 ]

Author:

{'name': 'Vishnu Kaushik', 'email': 'vishnu.kaushik@mongodb.com', 'username': 'kauboy26'}

Message: SERVER-59885 Wait for replica set to stabilize before validating collections
Branch: v5.1
https://github.com/mongodb/mongo/commit/ef1ab89ad223602b89bb8c6c512195b5c1a2d5e9

Comment by Githook User [ 07/Oct/21 ]

Author:

{'name': 'Vishnu Kaushik', 'email': 'vishnu.kaushik@mongodb.com', 'username': 'kauboy26'}

Message: SERVER-59885 Wait for replica set to stabilize before validating collections
Branch: master
https://github.com/mongodb/mongo/commit/24f6baad35a3a87020bc413eb9b6a06d6ac124c0

Generated at Thu Feb 08 05:48:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.