[SERVER-19909] Consider election race in restore_term.js Created: 12/Aug/15 Updated: 20/Aug/17 Resolved: 14/Aug/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | 3.1.7 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Siyuan Zhou | Assignee: | Siyuan Zhou |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Operating System: | ALL | ||||
| Sprint: | RPL 8 08/31/15 | ||||
| Participants: | |||||
| Linked BF Score: | 0 | ||||
| Description |
|
restore_term.js assumes the first election will win with term 1, which may not be the case if election race happens. It happens more frequently without timer based election and random timeout, but it is still possible in the new election protocol. |
| Comments |
| Comment by Githook User [ 14/Aug/15 ] |
|
Author: {u'username': u'visualzhou', u'name': u'Siyuan Zhou', u'email': u'siyuan.zhou@mongodb.com'}Message: |
| Comment by Githook User [ 12/Aug/15 ] |
|
Author: {u'username': u'visualzhou', u'name': u'Siyuan Zhou', u'email': u'siyuan.zhou@mongodb.com'}Message: |
| Comment by Siyuan Zhou [ 12/Aug/15 ] |
|
An example of election race: |