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

Do not install higher safe config via heartbeats in primary

    • Fully Compatible
    • ALL
    • v4.4
    • Repl 2020-05-18
    • 37

      A primary runs an automatic reconfig to bump the config term on stepup. If it learned a newer config via heartbeats during catchup mode and drain mode, the auto reconfig may fail, leaving an inconsistent config term with the primary's term.

      The primary should not fetch the higher safe config in primary state. It also should not install the new config in _scheduleHeartbeatReconfig_inlock. Force config should always be accepted via heartbeats on primary though.

      Consider making the error check on stepup stricter too.

            Assignee:
            william.schultz@mongodb.com William Schultz (Inactive)
            Reporter:
            siyuan.zhou@mongodb.com Siyuan Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: