The transition to CSRS test hook can fail to step up a new primary due to starvation from test writes

XMLWordPrintableJSON

    • Catalog and Routing
    • Fully Compatible
    • ALL
    • v9.0, v8.3
    • CAR Team 2026-09-14
    • 0
    • 🟩 Routing and Topology
    • None
    • None
    • None
    • None
    • None
    • None

      Problem

      In the replicaset_transition_to_and_from_csrs.py test hook we do a rolling restart which involves stepping up a new primary. This is done via replSetStepUp which will fail to elect the new primary if the running jstest is doing writes during the election (see related tickets).

       

      The hook gives each secondary a single chance to step up, so with heavy write activity all attempts fail.

       

      Solution

      Do more stepUp attempts. We expect that eventually we will win the race or the jstest will stop doing writes and we will succeed on the stepup.

       

      Impact: Test only issue.

            Assignee:
            Joan Bruguera Micó
            Reporter:
            Joan Bruguera Micó
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: