[SERVER-37078] Use awaitSecondaryNodes() instead of waitForState() to confirm a node is a secondary in repair_invalidates_replica_set_nodes.js Created: 11/Sep/18  Updated: 29/Oct/23  Resolved: 04/Dec/18

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.0.6, 4.1.7

Type: Bug Priority: Major - P3
Reporter: Louis Williams Assignee: Louis Williams
Resolution: Fixed Votes: 0
Labels: neweng, nyc
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:
v4.0
Sprint: Storage NYC 2018-12-17
Participants:
Linked BF Score: 12

 Description   

The test disk/repair_invalidates_replica_set_config.js calls in to wt_file_helper.js to wait for a repaired node to initial sync and become a secondary.

This uses waitForState(node, SECONDARY), which calls "replSetGetStatus" on the primary. If the primary is unaware a secondary was shut down, this will succeed, and the subsequent call to "replSetGetStatus" on the secondary will fail.

This should be replaced with a call to ReplSetTest.awaitSecondaryNodes(), which calls isMaster on each node to confirm its state, instead of just the primary.



 Comments   
Comment by Githook User [ 11/Jan/19 ]

Author:

{'username': 'louiswilliams', 'email': 'louis.williams@mongodb.com', 'name': 'Louis Williams'}

Message: SERVER-37078 Use awaitSecondaryNodes() instead of waitForState() to confirm a node is a secondary in repair_invalidates_replica_set_nodes.js

(cherry picked from commit d5705a7abb576f972c96dfe79de054d9f90b76fc)
Branch: v4.0
https://github.com/mongodb/mongo/commit/2e0a3e8d95b019020f08b4cae4fe389c9e1da182

Comment by Githook User [ 04/Dec/18 ]

Author:

{'name': 'Louis Williams', 'email': 'louis.williams@mongodb.com', 'username': 'louiswilliams'}

Message: SERVER-37078 Use awaitSecondaryNodes() instead of waitForState() to confirm a node is a secondary in repair_invalidates_replica_set_nodes.js
Branch: master
https://github.com/mongodb/mongo/commit/d5705a7abb576f972c96dfe79de054d9f90b76fc

Generated at Thu Feb 08 04:44:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.