[SERVER-48257] Reject heartbeat reconfig when running for election Created: 15/May/20 Updated: 29/Oct/23 Resolved: 19/May/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | 4.4.0-rc7, 4.7.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Siyuan Zhou | Assignee: | Siyuan Zhou |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | safe-reconfig-related | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Backport Requested: |
v4.4
|
||||||||||||||||
| Sprint: | Repl 2020-06-01 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Linked BF Score: | 23 | ||||||||||||||||
| Description |
|
Currently, receiving a reconfig when the node is in candidate state will try to cancel the election, but due to As a quick fix, we can reject heartbeat reconfig instead of canceling the election. The election will finish no matter what so liveness isn't affected. In reality, the node with a higher config <term, version> will vote no to the election as well. |
| Comments |
| Comment by Githook User [ 18/May/20 ] |
|
Author: {'name': 'Siyuan Zhou', 'email': 'siyuan.zhou@mongodb.com', 'username': 'visualzhou'}Message: (cherry picked from commit e8c93d3278965d731522bf9bf05525267d3e8fb8) |
| Comment by Githook User [ 18/May/20 ] |
|
Author: {'name': 'Siyuan Zhou', 'email': 'visualzhou@gmail.com', 'username': 'visualzhou'}Message: The test helper is introduced in |
| Comment by Githook User [ 18/May/20 ] |
|
Author: {'name': 'Siyuan Zhou', 'email': 'siyuan.zhou@mongodb.com', 'username': 'visualzhou'}Message: |