bkt: panicked at 'overflow when subtracting duration from instant'
I have included bkt in one of our internal tool. I got at least 5 complaints already from users having such error (MacOs users):
thread 'main' panicked at 'overflow when subtracting duration from instant', library/std/src/time.rs:424:33
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
or (distinct column number on this one) Here it’s bkt v0.7.1
thread 'main' panicked at 'overflow when subtracting duration from instant', library/std/src/time.rs:424:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Clearing the bkt-cache folder was our quick fix.
I’m sorry I don’t have a backtrace yet, but will try to provide it next time it happen. I thought it might be worth to already open that issue.
About this issue
- Original URL
- State: closed
- Created 9 months ago
- Comments: 20 (10 by maintainers)
@kumy apologies for the delay resolving this, I just pushed a commit that should mitigate this issue. I will cut a new release soon but if you / any of your users would like to test the updated binary before I do so that would be great! Artifacts can be found here.
Someone else had it this morning
And with
RUST_BACKTRACE=fullHi @dimo414 Someone had the issue this morning. This is the stack trace. We still have a copy of the cache directory, in case you need something else.
Hope it’ll be useful 🤞
We’re using that pattern:
We’re using ttl: 15min, 1h, 1d, 1w, depending on the queried data
I think this is https://github.com/rust-lang/rust/issues/100141 - surprising!