Skip to content

fix(ilp): buffer management with varchar columns#5738

Merged
bluestreak01 merged 2 commits intomasterfrom
jh_ilp_varchar_bug
Jun 11, 2025
Merged

fix(ilp): buffer management with varchar columns#5738
bluestreak01 merged 2 commits intomasterfrom
jh_ilp_varchar_bug

Conversation

@jerrinot
Copy link
Copy Markdown
Contributor

@jerrinot jerrinot commented Jun 11, 2025

This PR fixes a bug in the ILP with TCP transport that incorrectly calculated the size of varchar values when writing to internal buffers.

Impact:
Data corruption: Subsequent columns in the same line could be corrupted
Stability: In extreme cases, could cause segmentation faults due to invalid memory access

Scope:

Transport Table Type Status
ILP over TCP Non-WAL Affected
ILP over TCP WAL ✓ Not affected
ILP over HTTP WAL ✓ Not affected
ILP over HTTP Non-WAL ✓ Not affected

@jerrinot jerrinot added the Bug Incorrect or unexpected behavior label Jun 11, 2025
@jerrinot jerrinot marked this pull request as ready for review June 11, 2025 13:13
@jerrinot jerrinot changed the title fix(ilp): buffer management with varchar column fix(ilp): buffer management with varchar columns Jun 11, 2025
@glasstiger
Copy link
Copy Markdown
Contributor

[PR Coverage check]

😍 pass : 1 / 1 (100.00%)

file detail

path covered line new line coverage
🔵 io/questdb/cutlass/line/tcp/LineTcpEventBuffer.java 1 1 100.00%

@bluestreak01 bluestreak01 merged commit 792744a into master Jun 11, 2025
52 checks passed
@bluestreak01 bluestreak01 deleted the jh_ilp_varchar_bug branch June 11, 2025 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Incorrect or unexpected behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants