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

Factor out logic to wait for config commitment into a separate public method

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.4.0-rc0
    • None
    • Replication
    • None
    • Fully Compatible
    • v4.4
    • Repl 2020-03-23

    Description

      Currently, the logic to wait for a new config to become committed after a safe reconfig lives inside the processReplSetReconfig method of ReplicationCoordinator. We should move this logic into its own, public method on ReplicationCoordinator that external clients can call separately after calling processReplSetReconfig. This will make it easier to write unit tests that don't want to block the calling thread to wait for a config to become committed. Since this waiting logic isn't required for enforcing the safety of safe reconfigs, it is acceptable to move this to a separate public function that can be called, or bypassed, by an external client. For the reconfig command, we will add a call to this new wait method after we process the reconfig command.

      Attachments

        Activity

          People

            william.schultz@mongodb.com William Schultz (Inactive)
            william.schultz@mongodb.com William Schultz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: