compress_db() stopped working
We probably want a unit test for this too.
[2023-01-09T18:20:26Z TRACE whisperfish::worker::client] handle(CompactDb)
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: NotFound', whisperfish/src/store.rs:652:14
stack backtrace:
0: 0x40b23154 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h6b93fe4a3aa77880
1: 0x40b9d83c - core::fmt::write::hb5e583c7267b95b1
2: 0x40b15804 - std::io::Write::write_fmt::he9a3d42c193da2b1
3: 0x40b272d0 - std::panicking::default_hook::{{closure}}::h4a48a6a48fb5e830
4: 0x40b26c98 - std::panicking::default_hook::he08b43b8697c6c2c
5: 0x40b27ca8 - std::panicking::rust_panic_with_hook::h31ecd1b9f716ece0
6: 0x40b277f8 - std::panicking::begin_panic_handler::{{closure}}::hed58b2c719101f76
7: 0x40b23708 - std::sys_common::backtrace::__rust_end_short_backtrace::h7de062baceb36e59
8: 0x40b27740 - rust_begin_unwind
9: 0x40b992d0 - core::panicking::panic_fmt::hc3b735dba878f55d
10: 0x40b98f88 - core::option::expect_none_failed::h05e355989797c9e2
11: 0x4048d8f4 - whisperfish::store::Storage::compress_db::h7eb1c3d00f93e1f6
12: 0x402f1c3c - <whisperfish::worker::client::ClientActor as actix::handler::Handler<whisperfish::worker::client::CompactDb>>::handle::hc15aca8189609c75
Edited by Matti Viljanen