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

lastVote is not properly initialized

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

      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@mongodb.com Judah Schvimer
            Reporter:
            judah.schvimer@mongodb.com Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: