lastVote is not properly initialized

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 3.2.12, 3.4.2, 3.5.2
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • v3.4, v3.2
    • Repl 2017-01-23
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      lastVote is initialized here. It is an error for the lastVote document to have a field other than "term" and "candidateIndex" but it has an "_id" field as well. This has gone unnoticed due to our lack of test coverage around lastVote (see SERVER-27569) and because we do not actually check the return status of lastVote's initialization.

              Assignee:
              Judah Schvimer
              Reporter:
              Judah Schvimer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: