[SERVER-32770] ReplSetRequestVotesResponse should describe reason for 'yes' vote Created: 18/Jan/18  Updated: 27/Oct/23  Resolved: 25/Jan/18

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: William Schultz (Inactive) Assignee: Backlog - Replication Team
Resolution: Works as Designed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-32906 Improve logging around elections Closed
Assigned Teams:
Replication
Participants:

 Description   

Currently when sending a response to a replSetRequestVotes command, we only add a reason string describing why we voted if the vote was not granted. It could be useful to include a reason as well when we do grant our vote. For example, we could indicate that we voted because their term was higher than our own and their optime was at least ahead of us. It would make it more explicit to a reader of logs that we voted for the correct reasons. It would also add some diagnostic information for debugging i.e. the term and applied optime of the node at the time of its vote.



 Comments   
Comment by Andy Schwerin [ 18/Jan/18 ]

I think the reason you vote Yes is because none of the reasons to vote no apply.

Comment by Eric Milkie [ 18/Jan/18 ]

Are there multiple possible reasons for voting 'aye'?

Generated at Thu Feb 08 04:31:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.