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

Add option of waiting for newlyAdded field removal in ReplSetTest

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.1.0-rc0
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Repl 2021-06-28
    • Linked BF Score:
      151

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            xuerui.fa Xuerui Fa
            Reporter:
            xuerui.fa Xuerui Fa
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: