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(core): fix potential segfault when applying WAL on table with var sized columns #3134

Merged
merged 10 commits into from
Mar 29, 2023

Conversation

puzpuzpuz
Copy link
Contributor

The bug was in the Linux implementation of Files#copyDataToOffset(). It was setting the destination offset conditionally which led to bugs in situations when the lag was appended to the same column file multiple times.

@puzpuzpuz puzpuzpuz added Bug Incorrect or unexpected behavior Core Related to storage, data type, etc. labels Mar 29, 2023
@puzpuzpuz puzpuzpuz self-assigned this Mar 29, 2023
ideoma
ideoma previously approved these changes Mar 29, 2023
@ideoma
Copy link
Collaborator

ideoma commented Mar 29, 2023

[PR Coverage check]

😍 pass : 12 / 12 (100.00%)

file detail

path covered line new line coverage
🔵 io/questdb/cairo/ColumnType.java 1 1 100.00%
🔵 io/questdb/cairo/TableWriter.java 11 11 100.00%

@bluestreak01 bluestreak01 merged commit 4474994 into master Mar 29, 2023
@bluestreak01 bluestreak01 deleted the ap_fix_wal_apply_segfault branch March 29, 2023 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Incorrect or unexpected behavior Core Related to storage, data type, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants