SimpleTimestamper hangs in loop when system clock jumps backwards

Description

When the system clock jumps backwards SimpleTimestamper hangs in a "endless" loop and eats CPU time till the clock has reached at least the the time when the clock jumped backwards.

Just run this

And then set the system clock to one day in the past. It will stop and instead just loop till you adjust the clock back again.

Not a big deal if you have NTP and the clock varies just a few milliseconds before it is adjusted again. But if there is a bigger change for whatever reason this will crash your system.

Environment

None

Status

Assignee

Unassigned

Reporter

Emanuel Kupcik

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure