-
Notifications
You must be signed in to change notification settings - Fork 137
src/log.c:87: refsTryInsert: Assertion `next_slot->term != term' failed. #470
Comments
Lines 84 to 87 in 1e5465d
|
It seems like the refcount hashmap on n3 is getting out of sync with the value reported by logLastIndex... |
Ahh, and importantly:
So I think the cleanup after the disk write failure must be buggy, missing a refcount decrement maybe |
It's possible that this was exposed by #460 |
My 2c: when In case the write failure is |
Hmm, couldn't the same goal be achieved by refusing to append the entries to the in-memory log until they've been persisted? In any case, I'd like to fully understand what's going on to cause this specific broken invariant; there might be more to the story than what I've been able to deduce so far... |
This seems to be somewhat reproducible in the scheduled runs, e.g. https://github.com/canonical/jepsen.dqlite/actions/runs/5977971227/job/16219112428 |
(fixed by #483) |
Detected in Jepsen: https://github.com/canonical/jepsen.dqlite/actions/runs/5953700449/job/16148585347
jepsen-data-bank-partition,disk-failure(2).zip
The text was updated successfully, but these errors were encountered: