Skip to content

mvcc tx isolation panic: unlock called with no readers or writers #3028

Description

@jussisaurio
Multiple connections fuzz test seed: 1757602141629
--- Seed 1757602141629 Iteration 0 ---
Connection 0(op=0): BEGIN, is_in_tx=false, has_snapshot=false
Connection 1(op=0): INSERT INTO test_table (id, text) VALUES (7617515437652711874, 'text_3476691925083832167'), is_in_tx=false, has_snapshot=false
Connection 0(op=1): INSERT INTO test_table (id, text) VALUES (3185940912065730576, 'text_7436127175965847599'), is_in_tx=true, has_snapshot=false
Connection 1(op=1): UPDATE test_table SET text='updated_6632972469773869301' WHERE id = 7617515437652711874, is_in_tx=false, has_snapshot=false
Connection 0(op=2): PRAGMA wal_checkpoint(TRUNCATE), is_in_tx=true, has_snapshot=true
Connection 0(op=2) FAILED: SQL execution failure: `Runtime error: database table is locked`
Connection 1(op=2): INSERT INTO test_table (id, text) VALUES (2356435819568476113, 'text_360655341921316848'), is_in_tx=false, has_snapshot=false
Connection 0(op=3): INSERT INTO test_table (id, text) VALUES (3763711343161352727, 'text_8393841797468698917'), is_in_tx=true, has_snapshot=true
Connection 1(op=3): INSERT INTO test_table (id, text) VALUES (5598994204386299095, 'text_7717467446479417415'), is_in_tx=false, has_snapshot=false
Connection 0(op=4): ROLLBACK, is_in_tx=true, has_snapshot=true

thread 'fuzz_transaction::test_multiple_connections_fuzz_mvcc' panicked at core/storage/wal.rs:200:13:
unlock called with no readers or writers

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions