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

Replace electionID with term

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      Before PV1 (and terms), we used election id to determine between two primaries, which one is more recent. We started returning electionID in the hello command so that drivers could learn about more recent primaries by looking at electionID. When moving to PV1 and using terms instead of election IDs, we never changed what we send to hello. We just started generating election IDs in a special way (with the timestamp portion being set to the max timestamp) so that an election ID created from a higher term always compares as larger than the election ID created from a lower term.

      This code is confusing and unnecessary, so we should replace election ID with term. Note that doing this ticket does come with some concerns around communication for mixed binary sets and has large implications on SDAM.

            Assignee:
            Unassigned Unassigned
            Reporter:
            samy.lanka@mongodb.com Samyukta Lanka
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: