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

Use optimized (no isSelf calls) reconfiguration on heartbeat reconfig

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.0.7
    • None
    • None
    • None
    • Fully Compatible
    • v5.0
    • Repl 2022-03-07, Repl 2022-03-21
    • 0

    Description

      On primaries, when our new config matches the old config aside from term, we skip some of the validation checks and in particular, we skip calling isSelf to find our own entry in the config (since it must be at the same index). This avoids doing a round of network calls to all other nodes for term increases associated with elections, which is especially important since a likely reason for an election is a node is down and may time out in the isSelf call, slowing failover.

      On secondaries, the heartbeatReconfig path does not do this check, which can result in the secondary not installing its config for a while.

      Attachments

        Activity

          People

            matthew.russotto@mongodb.com Matthew Russotto
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: