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

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Minor - P4
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: Replication
    • Replication
    • Fully Compatible
    • Repl 2023-03-06, Repl 2023-03-20, Repl 2023-04-03
    • None
    • None
    • None
    • None
    • None
    • None
    • None

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

            Assignee:
            Kaitlin Mahar
            Reporter:
            Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: