Add option of waiting for newlyAdded field removal in ReplSetTest

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Repl 2021-06-28
    • 151
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In the reInitiate() function of ReplSetTest, we currently do not wait for newlyAdded field to be removed. Callers of this function may only want to add a new node and wait for it to become a voter or electable, so we could consider adding the option to automatically wait for the newlyAdded field to be removed. We could also consider adding it to awaitSecondaryNodes() or awaitReplication().

      We can probably call waitForAllNewlyAddedRemovals to accomplish this.

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

              Created:
              Updated:
              Resolved: