Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-13599

Investigate changes in SERVER-46894: Wait for the current config to be committed before running reconfig

      Description

      Downstream Change Summary

      Safe reconfig waits for the previous config to be committed before accepting the new config.

      Description of Linked Ticket

      Currently, we wait for both Config Replication and Oplog Commitment at the end of reconfig command. The former guarantees the new oplog cannot be "rolled back", the latter guarantees the following config can be accepted. However, it seems better to wait for the latter only when it's needed on receiving the following config.

      As an example, adding one node with votes: 1 to a single node replset will have to wait for the initial sync to finish before returning the reconfig currently.

      Another case is after an election, Oplog Commitment requires the first optime in its term to be committed, which may fail a reconfig following the election immediately. Waiting for the first optime in its term to be committed will make the command finish successfully.

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

            Assignee:
            ravind.kumar Ravind Kumar (Inactive)
            Reporter:
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              3 years, 49 weeks, 3 days ago