Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): make wal apply more fair in case of skewed transaction frequences #3592

Merged
merged 6 commits into from
Jul 31, 2023

Conversation

ideoma
Copy link
Collaborator

@ideoma ideoma commented Jul 23, 2023

When WAL apply job queue is overflown, the same tables can be picked up by WAL Apply Job over and over.
To fix the frequency of queue overflows, do not post a message more than once, until the message is processed

@ideoma
Copy link
Collaborator Author

ideoma commented Jul 27, 2023

[PR Coverage check]

😍 pass : 86 / 103 (83.50%)

file detail

path covered line new line coverage
🔵 io/questdb/cairo/wal/seq/TableSequencerImpl.java 10 21 47.62%
🔵 io/questdb/cairo/wal/ApplyWal2TableJob.java 10 12 83.33%
🔵 io/questdb/cairo/wal/seq/SeqTxnTracker.java 31 35 88.57%
🔵 io/questdb/cairo/wal/WalPurgeJob.java 1 1 100.00%
🔵 io/questdb/cairo/wal/WalWriter.java 1 1 100.00%
🔵 io/questdb/cairo/wal/CheckWalTransactionsJob.java 13 13 100.00%
🔵 io/questdb/cairo/CairoEngine.java 4 4 100.00%
🔵 io/questdb/cairo/wal/seq/TableSequencerAPI.java 16 16 100.00%

@ideoma ideoma merged commit a47b814 into master Jul 31, 2023
21 checks passed
@ideoma ideoma deleted the feat-make-wal-apply-more-fair branch July 31, 2023 08:11
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.

None yet

2 participants