Retry replSetStepDown in rollback_test.js

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.0.20, 4.2.9, 4.4.1, 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v4.4, v4.2, v4.0
    • Repl 2020-06-01, Repl 2020-06-15, Repl 2020-06-29
    • 8
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, we check if the replSetStepDown in rollback_test.js throws an exception. It seems possible for the command to return an error, but not throw a JS exception (for instance, if it times out when trying to acquire the RSTL lock).

      We should retry replSetStepDown if it returns an error.

              Assignee:
              Xuerui Fa
              Reporter:
              Xuerui Fa
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: