[SERVER-28480] last_vote.js should use ReplSetTest::stepUp() on node 1 before reconfig Created: 24/Mar/17 Updated: 06/Dec/17 Resolved: 05/Apr/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | 3.4.5, 3.5.6 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Judah Schvimer | Assignee: | William Schultz (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | bkp | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Backport Requested: |
v3.4
|
||||||||||||||||
| Sprint: | Repl 2017-04-17 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Linked BF Score: | 0 | ||||||||||||||||
| Description |
|
Preventing node 0 from running for election for 5 seconds before doing a reconfig is not enough time to ensure node 1 is elected. We also do not do any waitForState on node 1 to make sure it is actually primary. To address this we should increase the timeout in the stepdown before node 0 is able to become primary and actually wait for node 1 to become primary before doing the reconfig. We can then use a replSetFreeze: 0 to reset the election timeout on node 0. Using ReplSetTest::stepUp could fix this. We also should make sure node 1 is actually elected primary before doing the reconfig. Asserting that node 0 is secondary is not enough. |
| Comments |
| Comment by Githook User [ 20/Apr/17 ] |
|
Author: {u'name': u'Ramon Fernandez', u'email': u'ramon@mongodb.com'}Message: This reverts commit 888390515874a9debd1b6c5d36559ca86b44babd. |
| Comment by Githook User [ 20/Apr/17 ] |
|
Author: {u'name': u'Ramon Fernandez', u'email': u'ramon@mongodb.com'}Message: Revert " This reverts commit 7a6d8274f57cf141fd1d5c754ea1e2a1a6d2f372. |
| Comment by Githook User [ 17/Apr/17 ] |
|
Author: {u'username': u'will62794', u'name': u'William Schultz', u'email': u'william.schultz@mongodb.com'}Message: (cherry picked from commit 83ea6f6274b6f5f525569e72e278872886a3d70c) |
| Comment by Githook User [ 17/Apr/17 ] |
|
Author: {u'username': u'will62794', u'name': u'William Schultz', u'email': u'william.schultz@mongodb.com'}Message: (cherry picked from commit 83ea6f6274b6f5f525569e72e278872886a3d70c) |
| Comment by Githook User [ 05/Apr/17 ] |
|
Author: {u'username': u'will62794', u'name': u'William Schultz', u'email': u'william.schultz@mongodb.com'}Message: |