[SERVER-40355] rs.config that contains an _id greater than the number of nodes will crash Created: 27/Mar/19 Updated: 29/Oct/23 Resolved: 27/Mar/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | 4.0.7 |
| Fix Version/s: | 3.6.15, 4.0.8, 4.1.10, 3.4.24 |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | John Murphy | 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 | ||||||||||||||||||||||||||
| Backport Requested: |
v4.0, v3.6, v3.4
|
||||||||||||||||||||||||||
| Steps To Reproduce: |
|
||||||||||||||||||||||||||
| Sprint: | Repl 2019-04-08 | ||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||
| Case: | (copied to CRM) | ||||||||||||||||||||||||||
| Description |
|
When this occurs the following crash is logged:
|
| Comments |
| Comment by Githook User [ 24/Sep/19 ] |
|
Author: {'username': 'vessy-mongodb', 'email': 'vesselina.ratcheva@mongodb.com', 'name': 'Vesselina Ratcheva'}Message: (cherry picked from commit b023cfd4db379092f7642dd825d79652d905f847) |
| Comment by Githook User [ 24/Sep/19 ] |
|
Author: {'name': 'Vesselina Ratcheva', 'username': 'vessy-mongodb', 'email': 'vesselina.ratcheva@mongodb.com'}Message: (cherry picked from commit b023cfd4db379092f7642dd825d79652d905f847) |
| Comment by Githook User [ 27/Mar/19 ] |
|
Author: {'email': 'jesse@mongodb.com', 'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis'}Message: |
| Comment by Githook User [ 27/Mar/19 ] |
|
Author: {'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis', 'email': 'jesse@mongodb.com'}Message: |
| Comment by Judah Schvimer [ 27/Mar/19 ] |
|
We clearly don't have tests with member ids that don't match their indexes in the config. This ticket should add at least the provided repro as a test for this behavior. We could also get testing throughout more of the replication system by changing the _id here. |