You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
version: 0.10.1 problem: I'm using mini-moka to build an in-memeroy cache for a highly concurrent online service. And I've observed occasional panics caused by this lately:
I'd appreciate it if you could spare some time to fix this. Thanks!
Here is a part of the backtrace:
#50x55db18df8ae0 in rust_begin_unwind at /rustc/864bdf7843e1ceabc824ed86d97006acad6af643/library/std/src/panicking.rs:617
#60x55db187906d0 in core::panicking::panic_fmt::haa55128da9cd75d4 at /rustc/864bdf7843e1ceabc824ed86d97006acad6af643/library/core/src/panicking.rs:67
#70x55db18790890 in core::panicking::panic::hb4c75d9c5b922684 at /rustc/864bdf7843e1ceabc824ed86d97006acad6af643/library/core/src/panicking.rs:117
#80x55db18c729f0 in mini_moka::common::concurrent::deques::Deques<K>::move_to_back_ao::h6634499d6c51838b at /root/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/mini-moka-0.10.1/src/common/concurrent/deques.rs:
#90x55db18c2f330 in <mini_moka::sync::base_cache::Inner<K,V,S> as mini_moka::common::concurrent::housekeeper::InnerSync>::sync::h65edb4f953bc2fa3 at /root/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/mini-moka-0.10.1/src/sync/base_cache.rs:667
#100x55db18c43110 in mini_moka::sync::base_cache::BaseCache<K,V,S>::get_with_hash::{{closure}}::h1faf687a57deb0fd at /root/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/mini-moka-0.10.1/src/sync/base_cache.rs:153
#110x55db18c2baf0 in mini_moka::sync::cache::Cache<K,V,S>::get::haf41a911c172cc48 at /root/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/mini-moka-0.10.1/src/sync/cache.rs:421
The text was updated successfully, but these errors were encountered:
Thank you for reporting the issue. I checked if there is any code that will cause this panic, but I could not find any. I started to making some changes anyway here #15 but I am not sure if it could fix the panic.
I also want to reproduce the panic locally. I have some questions for you.
Do you set the max capacity of the cache?
Cache::new(max_capacity) or Cache::builder().max_capacity(max_capacity)
Thanks for your effort to investigate this problem! I was kind of worried that I didn't provide enough information and I didn't know what else can I report back then.
Thank you for answering. I confirmed that these answers support "A possible steps to reproduce" in the descriptions of #15. So I believe #15 should fix the panic you had.
I will merge #15 soon and publish v0.10.2 to crates.io.
version: 0.10.1
problem: I'm using mini-moka to build an in-memeroy cache for a highly concurrent online service. And I've observed occasional panics caused by this lately:
mini-moka/src/common/concurrent/deques.rs
Line 66 in 66abef3
I'd appreciate it if you could spare some time to fix this. Thanks!
Here is a part of the backtrace:
The text was updated successfully, but these errors were encountered: