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

XMLWordPrintableJSON

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

      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
            Reporter:
            Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: