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

Unwin-able primary takeovers can be scheduled on priority:0 nodes

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 7.0.0-rc0
    • None
    • Replication
    • Replication
    • Fully Compatible
    • Repl 2023-03-06, Repl 2023-03-20, Repl 2023-04-03

    Description

      _shouldTakeOverPrimary doesn't check if a node is priority:0 before scheduling a priority or catchup takeover. Later on, it will choose not to stand for election. This is confusing in the logs and wastes a very tiny amount of resources on the node.

      This can clearly be seen in this test.

      Attachments

        Activity

          People

            kaitlin.mahar@mongodb.com Kaitlin Mahar
            judah.schvimer@mongodb.com Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: