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

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

    XMLWordPrintableJSON

Details

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

    Description

      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;
      }
      

      Attachments

        Issue Links

          Activity

            People

              max.hirschhorn@mongodb.com Max Hirschhorn
              max.hirschhorn@mongodb.com Max Hirschhorn
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: