Details
-
Improvement
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
Fully Compatible
-
Repl 2020-04-20
Description
When replica set nodes are in FCV=4.2, their replica set configs have no config "term" field. This is intentional so that the behavior in FCV=4.2 matches the v4.2 reconfig behavior. After upgrading to FCV=4.4, however, replica set nodes will not add a config term until the first safe reconfig is run. This can leave an indefinitely long period of time where nodes will have configs with uninitialized terms, which is unsafe for the reasons illustrated in the trace of this comment. To prevent this unsafe period of time after upgrade, we should do an internal no-op reconfig after upgrading to FCV=4.4 to automatically add config terms, analogous to what we do on FCV downgrade.
Attachments
Issue Links
- is documented by
-
DOCS-13610 Investigate changes in SERVER-47189: Do a safe reconfig to add config term on upgrade to FCV=4.4
-
- Closed
-
- is related to
-
SERVER-47119 Config term does not get initialized until replSetReconfig is run
-
- Closed
-