[SERVER-23630] Secondary with higher priority stepdown current primary. Created: 11/Apr/16 Updated: 06/Dec/22 Resolved: 15/Apr/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | 3.2.3 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Zhang Youdong | Assignee: | Backlog - Replication Team |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Assigned Teams: |
Replication
|
||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Participants: | |||||||||||||||||
| Comments |
| Comment by Scott Hernandez (Inactive) [ 11/Apr/16 ] | ||||||||||||||||||||||
|
Yes, that is a bug. The command is sent with the wrong parameter(s). I believe we have an open issue to fix that. Thanks for pointing that out. | ||||||||||||||||||||||
| Comment by Zhang Youdong [ 11/Apr/16 ] | ||||||||||||||||||||||
|
sorry for "submit" by mistake, I will describe the problem by comments because I cannot update the issue. Affects Version: 3.2.3 The secondary with higher priority will send "{replSetStepDown: 1}" command to current primary.
The primary received this command will execute the following code which return error the secondary, so the logic "secondary with higher priority stepdown primary" make nonsense.
| ||||||||||||||||||||||
| Comment by Scott Hernandez (Inactive) [ 11/Apr/16 ] | ||||||||||||||||||||||
|
The title is a little sparse so I'm going to attempt to guess at what you are seeing and believe is happening, but I may be a bit off so please help correct my assumptions if they are incorrect. The point of higher priorities is to offer some control over which member is elected primary, so this sounds like expected behavior. The docs cover this but could use some additional clean-up on the finer points: https://docs.mongodb.org/manual/core/replica-set-elections/#member-priority To be clear, a higher priority member may not only win an election (due to its priority) but also start an election, or have the primary step down, so it can have a chance to become primary. If you are seeing something other than this, please upload steps to reproduce what you are seeing and logs/config showing the issue. |