Use replsettest's stepUp function in add_and_remove_shard_serializes_with_ddl.js

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • CAR Team 2025-05-12
    • 0
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-104276 added a wait for replication before attempting to step up the secondary in this test. However, this can still fail, seemingly if the primary steps down in response to the vote request which generates some writes (reasoning taken from this comment). To avoid this, we need some retry loop for the step up, but it looks as though the replsettest actually implements a stepUp function including the necessary waits and retries, so instead of writing this again ourselves, we should rely on this helper.

            Assignee:
            Allison Easton
            Reporter:
            Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: