SERVER-139135ClosedFixed

getESERotateActiveKEKStatus reports Date_t::min() rotation times after restart

After a restart, {{getESERotateActiveKEKStatus}} reports the persisted active KEK as {{completed}} with {{lastStartRotationTime}}/{{lastEndRotationTime}} set to {{Date\_t::min\(\)}}, because no rotation has run on the node yet. pymongo cannot decode that date \({{InvalidBSON: year 292278994 is out of range}}\), which breaks the {{ContinuousESERotation}} hook. Fix: omit each time field until this node has run a rotation.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

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

No components specified.

Labels
Tags and classification

No labels assigned.