-
Type: Improvement
-
Resolution: Works as Designed
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Replication
-
Replication
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.
- related to
-
SERVER-32906 Improve logging around elections
- Closed