SERVER-138403ClosedFixed

Reset SizeCountCheckpointValidator on step up

Today, the lifetime of the {{SizeCountCheckpointValidator}} is equal to lifetime of the {{OplogApplier}} which is actually equal to the process lifetime. If a node creates an {{OplogApplier}} at any point, steps up, and then steps back down, it continues using the state in the pre-existing {{{}SizeCountCheckpointValidator{}}}. Oplog application stops during the node's primary tenure, so the {{SizeCountCheckpointValidator}} state is stale, and subsequent checkpoint validation is fails. Change

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1025
Components
Server components related to this issue

No components specified.

Labels
Tags and classification
Milestone-3Phase-2