-
Type: Task
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Replication
SERVER-40078 introduces wall clock times to several replication structures. To address mixed version communication, wall clock times are only required to be in these structures when the FCV is 4.2, such as in OplogQueryMetadata::readFromMetadata. These wall clock times should be required unconditionally after the 4.2 release. We could additionally consider adding the following invariant to MemberData::setLastAppliedOpTimeAndWallTime, MemberData::setLastDurableOpTimeAndWallTime, MemberData::advanceLastDurableOpTimeAndWallTime, and MemberData::advanceLastAppliedOpTimeAndWallTime:
invariant(opTime.opTime.isNull() || opTime.wallTime != Date_t::min())
The default value for wallTime in OpTimeAndWallTime is Date_t::min(), so adding this invariant will ensure that a meaningful wall clock time is passed to these functions when a meaningful OpTime is passed.
- depends on
-
SERVER-40737 Use Date_t() as default wallTime value in OpTimeAndWallTimes
- Closed
- is duplicated by
-
SERVER-42485 Remove FCV checks gating reporting wall clock times in Replication
- Closed
- is related to
-
SERVER-41650 loadLastOpTimeAndWallTime should use IDL to parse oplog entries
- Closed
-
SERVER-40078 Add wall clock time corresponding to lastCommitted optime to optimes subdocument
- Closed
-
SERVER-34598 Add millisecond-granularity wallclock times for the various metrics in replSetGetStatus's optimes subdocument
- Closed