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

fix(cairo): fix reader and txn scoreboard leak #1759

Merged
merged 2 commits into from
Jan 5, 2022

Conversation

ideoma
Copy link
Collaborator

@ideoma ideoma commented Jan 4, 2022

Fix txn_scoreboard leak which eventually leads to all SELECT queries being locked with max txn-inflight limit reached error.

Problem happens when TableReader is taken from the pool, it re-reads transaction and fails to reload partitions. If failure happens at this point scoreboard is not released and reader is kept locked out of the pool.

Failure to release partition structure is quite likely on busy read/write system because of flaw in O3 purge partition logic which to be fixed separately.

@bluestreak01 bluestreak01 merged commit 6666825 into master Jan 5, 2022
@bluestreak01 bluestreak01 deleted the fix-locked-reader-after-o3-partition-purge branch January 5, 2022 01:36
@ideoma
Copy link
Collaborator Author

ideoma commented Jan 7, 2022

[PR Coverage check]

😍 pass : 11 / 11 (100.00%)

file detail

path covered line new line coverage
🔵 io/questdb/cairo/TableReader.java 6 6 100.00%
🔵 io/questdb/cairo/pool/ReaderPool.java 5 5 100.00%

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