Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-32770

ReplSetRequestVotesResponse should describe reason for 'yes' vote

    • Type: Icon: Improvement Improvement
    • Resolution: Works as Designed
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
    • 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.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            william.schultz@mongodb.com William Schultz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: