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

Fix doReplSetReconfig to always return a status on error

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • ALL
    • Repl 2020-03-23

      The contract for doReplSetReconfig (as observed by all callers) is that it should always return a bad status on error and never throw (no callers catch exceptions). There is an exception to this when waiting for the config to be replicated to a majority (here) - that should be changed to a status return.

            Assignee:
            william.schultz@mongodb.com William Schultz (Inactive)
            Reporter:
            vesselina.ratcheva@mongodb.com Vesselina Ratcheva (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: