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

Fix assertion around number of elections in priority_takeover_one_node_higher_priority.js

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Repl 2020-11-02
    • 24

      In SERVER-50611, we modified this test to allow for multiple priority takeovers to occur in the test (while we only expect/induce one priority takeover to occur, we relaxed the assertion from exactly one occurs => at least one occurs, as slow elections might lead to multiple takeovers happening; see the linked ticket).

      But the relaxed assertion is backwards; it asserts that the expected # of primary takeovers is >= the actual number, when in fact the actual number may be higher due to slow elections. This assertion should be reversed so actual # takeovers >= expected #.

            Assignee:
            george.wangensteen@mongodb.com George Wangensteen
            Reporter:
            george.wangensteen@mongodb.com George Wangensteen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: