ReshardingTest fixture must accommodate nodes going into ROLLBACK while attempting to run replSetStepUp

XMLWordPrintableJSON

    • Fully Compatible
    • v5.0
    • Sharding 2021-08-23, Sharding 2021-09-06, Sharding 2021-09-20
    • 1
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      A node closes its user connections as part of its transition to member state ROLLBACK. The ReshardingTest#stepUpNewPrimaryOnShard() method should swallow any network error when attempting to run the replSetStepUp command and move on to attempting to step up another secondary node.

      const res = newPrimary.adminCommand({replSetStepUp: 1});
      if (res.ok === 1) {
          replSet.awaitNodesAgreeOnPrimary();
          assert.eq(newPrimary, replSet.getPrimary());
          return;
      }
      

            Assignee:
            Max Hirschhorn
            Reporter:
            Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: