mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-14 20:44:29 +01:00
`FaultyQuery` causes frequent false positives in simulator due to the following chain of events: - we write rows and flush wal to disk - inject fault during fsync which fails - error is returned to caller, simulator thinks those rows dont exist because the query failed - we reopen the database i.e. read the WAL back to memory from disk, it has those extra rows we think we didn't write - assertion fails because table has more rows than simulator expected More discussion about fsync behavior in issue #2091 Closes #2110