SERVER-135295In Code Review
Log and emit a metric when a node detects that another node of the replset has gone back in time
Log and emit a metric if a member's last_xxx timestamp goes back in time through a heartbeat or replSetUpdatePosition directly from that node. Each node keeps track of the last heartbeat response it had from another node. We use this info for sync source selection. But we separately keep track of every node known lastWritten / lastApplied / lastDurable updated through heartbeat or the replSetUpdatePosition command, and this is not overrode if the new optime is not greater than the previous