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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.9.0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Repl 2020-11-02
    • 24

    Description

      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 #.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: