-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Replication
-
None
-
Fully Compatible
-
v4.4
-
Repl 2020-03-23, Repl 2020-04-06
-
0
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.
- is related to
-
SERVER-45087 Check Oplog Commitment condition on reconfig
- Closed