[SERVER-37010] Prevent unexpected elections in initial_sync4.js and initial_sync_rename_collection*.js Created: 05/Sep/18  Updated: 29/Oct/23  Resolved: 06/Sep/18

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.4.18, 3.6.8, 4.0.3, 4.1.3

Type: Task Priority: Major - P3
Reporter: Spencer Brody (Inactive) Assignee: Spencer Brody (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
is related to SERVER-28326 Wait for primary to stabilize in init... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.0, v3.6, v3.4
Sprint: Repl 2018-09-10
Participants:

 Description   

These tests add a second node to a 1 node replica set and expect the primary to stay up. If the secondary takes more than the election timeout to complete its initial sync, however, the primary may step down. We should add the secondary with votes:0 to prevent the unexpected election.



 Comments   
Comment by Githook User [ 10/Sep/18 ]

Author:

{'name': 'Spencer T Brody', 'email': 'spencer@mongodb.com', 'username': 'stbrody'}

Message: SERVER-37010 Prevent unexpected elections in initial_sync4.js and initial_sync_rename_collection*.js

(cherry picked from commit 70a2ad8b39624a5ecb82bfa53e41eeb1ba2e3cdb)
Branch: v3.4
https://github.com/mongodb/mongo/commit/3339fc9385a6ae9c77d0830e7afdfe033a3a1b53

Comment by Githook User [ 06/Sep/18 ]

Author:

{'name': 'Spencer T Brody', 'email': 'spencer@mongodb.com', 'username': 'stbrody'}

Message: SERVER-37010 Prevent unexpected elections in initial_sync4.js and initial_sync_rename_collection*.js

(cherry picked from commit 70a2ad8b39624a5ecb82bfa53e41eeb1ba2e3cdb)
Branch: v3.6
https://github.com/mongodb/mongo/commit/60897d8e3b1bd24504993899d82e9785ca5107ff

Comment by Githook User [ 06/Sep/18 ]

Author:

{'name': 'Spencer T Brody', 'email': 'spencer@mongodb.com', 'username': 'stbrody'}

Message: SERVER-37010 Prevent unexpected elections in initial_sync4.js and initial_sync_rename_collection*.js

(cherry picked from commit 70a2ad8b39624a5ecb82bfa53e41eeb1ba2e3cdb)
Branch: v4.0
https://github.com/mongodb/mongo/commit/6e10ba77502c0ed24d9667ae56154a51f84f2273

Comment by Githook User [ 06/Sep/18 ]

Author:

{'name': 'Spencer T Brody', 'email': 'spencer@mongodb.com', 'username': 'stbrody'}

Message: SERVER-37010 Prevent unexpected elections in initial_sync4.js and initial_sync_rename_collection*.js
Branch: master
https://github.com/mongodb/mongo/commit/b4f3327901f58083d376064a6d89680325b26964

Comment by Spencer Brody (Inactive) [ 05/Sep/18 ]

On master only initial_sync_rename_collection.js exists, but on older branches there is also initial_sync_rename_collection_unsafe.js, which should be updated the same way.

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