Skip to content

fix(wal): fix wal table suspension on a race condition#3019

Merged
bluestreak01 merged 5 commits intomasterfrom
fix-wal-apply-suspended
Feb 24, 2023
Merged

fix(wal): fix wal table suspension on a race condition#3019
bluestreak01 merged 5 commits intomasterfrom
fix-wal-apply-suspended

Conversation

@ideoma
Copy link
Collaborator

@ideoma ideoma commented Feb 23, 2023

Fixes error in reading WAL-E files when rollback() is called in the WAL Writer concurrently.

2023-02-23T12:21:03.152610Z C i.q.c.w.ApplyWal2TableJob WAL apply job failed, table suspended [table=testWalMetadataChangeHeavy_wal_parallel~2, error=segment /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/junit9998452327719299136/dbRoot/testWalMetadataChangeHeavy_wal_parallel~2/wal1/5/_event.i does not have txn with id 0, errno=2]

bluestreak01
bluestreak01 previously approved these changes Feb 23, 2023
@ideoma
Copy link
Collaborator Author

ideoma commented Feb 24, 2023

[PR Coverage check]

😍 pass : 7 / 7 (100.00%)

file detail

path covered line new line coverage
🔵 io/questdb/cairo/wal/WalWriterEvents.java 1 1 100.00%
🔵 io/questdb/cairo/wal/WalEventReader.java 6 6 100.00%

@bluestreak01 bluestreak01 merged commit 6d15166 into master Feb 24, 2023
@bluestreak01 bluestreak01 deleted the fix-wal-apply-suspended branch February 24, 2023 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants