[SERVER-36234] Fix ./jstests/replsets/initial_sync_drop_collection.js to prevent using stale heartbeat info in the test. Created: 21/Jul/18  Updated: 29/Oct/23  Resolved: 24/Jul/18

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.6.7, 4.0.2, 4.1.2

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-07-30
Participants:
Linked BF Score: 2

 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 in finishTest can work incorrectly and lead to failures like in BF-9682.

Fix is to make the setupTest function to wait till secondary node's state reaches "STARTUP2" after its restart.



 Comments   
Comment by Githook User [ 06/Aug/18 ]

Author:

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

Message: SERVER-36234 Fix initial_sync_drop_collection.js to prevent using stale heartbeat info in the test.

(cherry picked from commit e6b804398d100cc131750f215d1c1beae1a13f87)
Branch: v4.0
https://github.com/mongodb/mongo/commit/8175d47cb1d662c46d5e2e19fd3165690916ae18

Comment by Githook User [ 24/Jul/18 ]

Author:

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

Message: SERVER-36234 Fix initial_sync_drop_collection.js to prevent using stale heartbeat info in the test.

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

Comment by Githook User [ 24/Jul/18 ]

Author:

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

Message: SERVER-36234 Fix initial_sync_drop_collection.js to prevent using stale heartbeat info in the test.
Branch: master
https://github.com/mongodb/mongo/commit/e6b804398d100cc131750f215d1c1beae1a13f87

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