[SERVER-60946] Race condition in replsetprio1.js when initiating replset with nodes having different priorities Created: 22/Oct/21 Updated: 29/Oct/23 Resolved: 25/Oct/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | 5.2.0, 4.4.11, 5.0.5, 5.1.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Wenbin Zhu | Assignee: | Wenbin Zhu |
| Resolution: | Fixed | 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 | ||||||||
| Backport Requested: |
v5.1, v5.0, v4.4
|
||||||||
| Sprint: | Repl 2021-11-01 | ||||||||
| Participants: | |||||||||
| Linked BF Score: | 45 | ||||||||
| Description |
|
replsetprio1.js has a race condition when initiating the replset. The nodes are initially configured with different priorities, and when initiating the replset, we add one node at a time by calling replsetReconfig. When adding the third node, there could be a concurrent priority takeover that causes primary node to stepdown and failing replsetReconfig command to fail. As a result, the replset initiation process fails. |
| Comments |
| Comment by Githook User [ 12/Nov/21 ] |
|
Author: {'name': 'Wenbin Zhu', 'email': 'wenbin.zhu@mongodb.com', 'username': 'WenbinZhu'}Message: (cherry picked from commit d2d7164bb02fff924ac787f6d422dffb22ef0b94) |
| Comment by Githook User [ 12/Nov/21 ] |
|
Author: {'name': 'Wenbin Zhu', 'email': 'wenbin.zhu@mongodb.com', 'username': 'WenbinZhu'}Message: (cherry picked from commit d2d7164bb02fff924ac787f6d422dffb22ef0b94) |
| Comment by Githook User [ 12/Nov/21 ] |
|
Author: {'name': 'Wenbin Zhu', 'email': 'wenbin.zhu@mongodb.com', 'username': 'WenbinZhu'}Message: (cherry picked from commit d2d7164bb02fff924ac787f6d422dffb22ef0b94) |
| Comment by Githook User [ 25/Oct/21 ] |
|
Author: {'name': 'Wenbin Zhu', 'email': 'wenbin.zhu@mongodb.com', 'username': 'WenbinZhu'}Message: |