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

Make sure the donor primary can step down reliably in tenant_migration_donor_resume_on_stepup_and_restart.js

    • Fully Compatible
    • ALL
    • Sharding 2020-11-02
    • 11

      The test currently runs replSetStepDown with a short stepdownTime of 1 second to 
      make it more likely for the old primary to step back up. However, if the old primary spends more than 1 second to kill background operations while stepping down, the replSetStepdown will fail with LockTimeout since when force: true, the stepdownTime is the lock timeout for the RSTL (ReplicationStateTransition lock). To avoid this error, we should instead run replSetStepDown with stepdownTime of ReplSetTest.kForeverSecs and immediately then run a

      {replSetFreeze: 0}

      command so the old primary is immediately eligible to step back up. 

            Assignee:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Reporter:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: