[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: |
|
||||||||||||
| 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: (cherry picked from commit 70a2ad8b39624a5ecb82bfa53e41eeb1ba2e3cdb) |
| Comment by Githook User [ 06/Sep/18 ] |
|
Author: {'name': 'Spencer T Brody', 'email': 'spencer@mongodb.com', 'username': 'stbrody'}Message: (cherry picked from commit 70a2ad8b39624a5ecb82bfa53e41eeb1ba2e3cdb) |
| Comment by Githook User [ 06/Sep/18 ] |
|
Author: {'name': 'Spencer T Brody', 'email': 'spencer@mongodb.com', 'username': 'stbrody'}Message: (cherry picked from commit 70a2ad8b39624a5ecb82bfa53e41eeb1ba2e3cdb) |
| Comment by Githook User [ 06/Sep/18 ] |
|
Author: {'name': 'Spencer T Brody', 'email': 'spencer@mongodb.com', 'username': 'stbrody'}Message: |
| 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. |