-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: panicked at 'supplied instant is later than self' on c6g.2xlarge EC2 (arm64) #23
Comments
Thanks for your report! On Linux with arm64, minstant doesn't use CPU timing instruction to produce clock time, instead, it will fall back to coarse time: libc::clock_gettime(libc::CLOCK_MONOTONIC_COARSE, ...) The value of clock time is really not expected to jump back, ref
You can check if your system is encountering other clock issues. However, I have no objection to following std. You can send a PR to do that and I will help release it, then the panic will not happen in the next version. |
Cool! I've opened a pull request at #24. |
Thanks for your hard work on this excellent crate! Here is a bug report: when I was using it on an EC2 with arm64 architecture (c6g.2xlarge), I encountered 'supplied instant is later than self' frequently. Below is the backtrace.
Looks like the
elapsed
directly unwraps thechecked_duration_since
and panics on time going backward. However, theInstant
from the standard library says,What about also conforming to the behavior of std, so that there'll be no need to call
now().saturating_duration_since(start_time)
?Downstream issue: risingwavelabs/risingwave#4547
The text was updated successfully, but these errors were encountered: