[SERVER-35448] TopologyCoordinator::processReplSetRequestVotes should not crash if _selfIndex is -1 Created: 06/Jun/18 Updated: 06/Dec/22 Resolved: 21/Jan/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Matthew Russotto | Assignee: | Backlog - Replication Team |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Assigned Teams: |
Replication
|
||||
| Operating System: | ALL | ||||
| Participants: | |||||
| Linked BF Score: | 70 | ||||
| Description |
|
If processReplSetRequestVotes is called when the node does not know its own member number (_selfIndex == -1), we will currently invariant when trying to access _selfConfig(). Instead, we should simply vote "no" with an appropriate message. |
| Comments |
| Comment by Tess Avitabile (Inactive) [ 21/Jan/20 ] |
|
Closing as Won't Fix. This only affects removed nodes, and we have not seen this crash reported in the field. I'm not sure this is a good neweng ticket, since it could be hard to test. |