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

Raise election timeouts as a way to provide more stable replica set test topologies

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.5, 3.7.3
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v3.6
    • Sprint:
      Repl 2018-01-29, Repl 2018-02-12, TIG 2018-03-12
    • Linked BF Score:
      14

      Description

      For Javascript tests that aren't trying to directly test any aspect of the consensus machinery, we should consider making unwanted elections impossible, so as to cut down on the issue of spurious topology changes interfering with the actions a test is executing. Raising election timeouts to some very high value could be one solution to this. It would make tests more resilient to machine/network slowness, and improve their stability. Setting the priority of secondary nodes to 0 (in addition to high election timeouts) could also help reduce the triggering of unexpected election.

      We may want to consider reviewing tests and see which ones we consider "consensus agnostic", and those we do not.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: