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

Remove use of initiateWithShortElectionTimeout from shard split tests that do not need to use it

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • 10

      Various shard split tests currently use initiateWithShortElectionTimeout and do not actually need it. The use of this flag can trigger frequent elections on an artificially/unrealistically short timeout that can cause shard split tests to be aborted. This isn't buying us anything in terms of correctness/resiliency testing.

      An earlier work-in-progress incarnation of shard split seems to have relied on election timeouts to step up a primary on the recipient cluster after a split. As such, initiateWithShortElectionTimeout was introduced to speed up some shard split tests. Now that shard split uses replSetStepUp to request that a recipient primary steps up after reconfig, this short election timeout is no longer necessary. Additionally, evergreen sets electionTimeoutMillis to 24 hours (86400000 ms) to avoid unnecessary elections, so we can safely use the default for shard split.

            Assignee:
            christopher.caplinger@mongodb.com Christopher Caplinger
            Reporter:
            christopher.caplinger@mongodb.com Christopher Caplinger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: