[SERVER-45765] Race in ReplSetTest.initiateWithAnyNodeAsPrimary Created: 24/Jan/20 Updated: 29/Oct/23 Resolved: 25/Jan/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | 4.3.3 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | A. Jesse Jiryu Davis | Assignee: | A. Jesse Jiryu Davis |
| 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 | ||||||||||||
| Participants: | |||||||||||||
| Linked BF Score: | 29 | ||||||||||||
| Description |
|
In replsettest.js, initiateWithAnyNodeAsPrimary:
If there's an election any time after Step 3, then one of the members of self._slaves could be a primary now. However, so awaitSecondaryNodes keeps trying the same set of nodes until it times out. Observed in replsettest_control_12_nodes.js. It's probably more common now for a machine to get overloaded, causing heartbeat timeouts and elections:
|
| Comments |
| Comment by A. Jesse Jiryu Davis [ 27/Jan/20 ] |
|
The race was introduced in |
| Comment by Githook User [ 25/Jan/20 ] |
|
Author: {'username': 'ajdavis', 'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com'}Message: If there's an election between the call to replSetInitiate and the last call to Also add resource_intensive tag to a test that starts 12 nodes. |