[SERVER-31268] Make updates_in_heterogeneous_repl_set.js more robust Created: 26/Sep/17  Updated: 30/Oct/23  Resolved: 04/Oct/17

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 3.6.0-rc0

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

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Query 2017-10-02, Query 2017-10-23
Participants:
Linked BF Score: 0

 Description   

The ReplSetTest.stepUp() function calls awaitReplication(), but that is not enough to ensure that the we are asking to step up will win its election. We also need to ensure that all other nodes agree that the candidate primary is caught up.



 Comments   
Comment by Githook User [ 04/Oct/17 ]

Author:

{'email': 'justin.seyster@mongodb.com', 'name': 'Justin Seyster', 'username': 'jseyster'}

Message: SERVER-31268 Make updates_in_heterogeneous_repl_set.js more robust.

The updates_in_heterogeneous_repl_set.js test wants to call stepUp()
on each of its replica set members to ensure that each one gets an
opportunity to handle inserts and updates. However, we found that the
stepUp()-triggered election was occasionally failing, because even
though a call to awaitReplication() ensured that all members were
caught up on their oplogs, some members were not aware that their
peers were caught up.

The new awaitNodesAgreeOnOpTime() function uses an assert.soon() to
wait until all the members are caught up on their peers' status, so
that the election always succeeds.
Branch: master
https://github.com/mongodb/mongo/commit/edc3dfce51b00ba3007f35cf6383efb72bf8b74e

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