[SERVER-38200] Fix ./jstests/replsets/initial_sync_oplog_hole.js to prevent using stale heartbeat info in the test. Created: 19/Nov/18  Updated: 29/Oct/23  Resolved: 30/Nov/18

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.6.11, 4.0.6, 4.1.6

Type: Bug Priority: Major - P3
Reporter: Suganthi Mani Assignee: Suganthi Mani
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:
v4.0, v3.6
Sprint: Repl 2018-12-03, Repl 2018-12-17
Participants:
Linked BF Score: 14

 Description   

_waitForIndicator function in ./src/mongo/shell/replsettest.js always executes the "replSetGetStatus" cmd on primary and gets the member node's state. If the primary is not holding up-to-date info about the replica set members, then replTest.waitForState can work incorrectly and lead to failures like in BF-11225.

Fix is to use rslib's waitForState which verifies the node's state by making a call directly to that node in question.



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

Author:

{'username': 'smani87', 'email': 'suganthi.mani@mongodb.com', 'name': 'Suganthi Mani'}

Message: SERVER-38200 Fix jstests/replsets/initial_sync_oplog_hole.js to use rslib waitForState to prevent using stale heartbeat info in the test.

(cherry picked from commit d9ac7e9ea34bb070239385225a3d002f9924a301)
Branch: v3.6
https://github.com/mongodb/mongo/commit/ef3b9c5afd55a0cec96ea65d3cdf2fe5a8d28007

Comment by Githook User [ 12/Jan/19 ]

Author:

{'username': 'smani87', 'email': 'suganthi.mani@mongodb.com', 'name': 'Suganthi Mani'}

Message: SERVER-38200 Fix jstests/replsets/initial_sync_oplog_hole.js to use rslib waitForState to prevent using stale heartbeat info in the test.

(cherry picked from commit d9ac7e9ea34bb070239385225a3d002f9924a301)
Branch: v4.0
https://github.com/mongodb/mongo/commit/a722798ac1732b18239b808b5363be0a1b16d166

Comment by Githook User [ 30/Nov/18 ]

Author:

{'name': 'Suganthi Mani', 'email': 'suganthi.mani@mongodb.com', 'username': 'smani87'}

Message: SERVER-38200 Fix jstests/replsets/initial_sync_oplog_hole.js to use rslib waitForState to prevent using stale heartbeat info in the test.
Branch: master
https://github.com/mongodb/mongo/commit/d9ac7e9ea34bb070239385225a3d002f9924a301

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