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
I am using redb in my library and I see an error message below in my tests occasionally.
thread '<unnamed>' panicked at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/redb-2.1.4/src/tree_store/page_store/page_manager.rs:820:13:
Allocated a page that is still referenced! r0.6/0
thread 'ND45467>' panicked at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/redb-2.1.4/src/tree_store/page_store/page_manager.rs:749:39:
called `Result::unwrap()` on an `Err` value: PoisonError { .. }
Regarding writes, there is no concurrent transaction: insertions are queued and batched in one transaction. However, a transaction normally mixes write to multiple tables. The actual code is below. Is this a valid usage?
let tx = self.db.begin_write()?;{letmut tbl = tx.open_table(table_def(&head.space))?;
tbl.insert(head.index, value::ser(head.inner))?;
notifiers.push(head.notifier);}for e in tail {letmut tbl = tx.open_table(table_def(&e.space))?;
tbl.insert(e.index, value::ser(e.inner))?;
notifiers.push(e.notifier);}
tx.commit()?;
Since there is no conflicting transactions, I can't believe such a naive error could happen. Do you know some existing issue that's close to my problem? FYI, I am using memory backend for tests.
The text was updated successfully, but these errors were encountered:
Hmm, ya that looks like very normal usage. Do you have a simple way to reproduce it? If you have a minimal reproduction I can run, I can take a look at what's going on
I am using redb in my library and I see an error message below in my tests occasionally.
Regarding writes, there is no concurrent transaction: insertions are queued and batched in one transaction. However, a transaction normally mixes write to multiple tables. The actual code is below. Is this a valid usage?
Since there is no conflicting transactions, I can't believe such a naive error could happen. Do you know some existing issue that's close to my problem? FYI, I am using memory backend for tests.
The text was updated successfully, but these errors were encountered: