madsim-rs / madsim

Magical Deterministic Simulator for distributed systems in Rust.
Apache License 2.0
648 stars 46 forks source link

simulate local time and clock going backwards #24

Open wangrunji0408 opened 2 years ago

wangrunji0408 commented 2 years ago

Now we only have a global time that goes monotonically. However, in the real world, each node has its own local system time. And the system time can be set by the user, causing the potential clock backward. This is a very tricky scenario where applications are likely to be crashed. We should simulate this behavior.