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

resharding_coordinator_recovers_abort_decision.js Should Be More Insistent When Stepping Up New Primary

    • Replication
    • Fully Compatible
    • ALL
    • v8.0, v7.3, v7.0, v6.0
    • Repl 2024-07-08
    • 0

      In an attempt to minimize the duration that there is no writable primary, the resharding test fixture will ask the secondaries nicely to step up. However, if the config server is also a shard, it's likely that the config shard accepts writes often enough that no secondary will ever be able to get voted in due to being too stale (see this comment for an example of this).

      Consider introducing a new mode to stepUpNewPrimaryOnShard that is more aggressive (e.g. by using replSetStepDown instead) and modify resharding_coordinator_recovers_abort_decision.js to use it here, since this test requires a failover in order to succeed.

            Assignee:
            brad.cater@mongodb.com Brad Cater
            Reporter:
            brett.nawrocki@mongodb.com Brett Nawrocki
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: