Skip to content

fix(ilp): avoid closing connection on protocol errors#6190

Merged
bluestreak01 merged 6 commits intomasterfrom
puzpuzpuz_ilp_tcp_protocol_error
Sep 25, 2025
Merged

fix(ilp): avoid closing connection on protocol errors#6190
bluestreak01 merged 6 commits intomasterfrom
puzpuzpuz_ilp_tcp_protocol_error

Conversation

@puzpuzpuz
Copy link
Copy Markdown
Contributor

@puzpuzpuz puzpuzpuz commented Sep 25, 2025

We used to close the ILP/TCP connection and the writer on cast error like the below one:

2025-09-25T17:34:31.511806Z C i.q.c.l.t.LineTcpConnectionContext [208305913932] could not process line data 1 [table=weather, msg=could not write ILP message to WAL [tableName=weather, error=[-1] table: weather, column: col; cast error from protocol type: FLOAT to column type: STRING], errno=0]

The scenario is when you're trying to send a value of wrong type for the given column, i.e. a float instead of a string (LineTcpReceiverTest.testColumnTypeStaysTheSameWhileColumnAdded). This patch keeps the connection open if line.tcp.disconnect.on.error is set to false. The error is also no longer logged with critical level.

@puzpuzpuz puzpuzpuz self-assigned this Sep 25, 2025
@puzpuzpuz puzpuzpuz added Bug Incorrect or unexpected behavior ILP Issues or changes relating to Influx Line Protocol labels Sep 25, 2025
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Sep 25, 2025

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch puzpuzpuz_ilp_tcp_protocol_error

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

bluestreak01
bluestreak01 previously approved these changes Sep 25, 2025
@glasstiger
Copy link
Copy Markdown
Contributor

[PR Coverage check]

😍 pass : 7 / 9 (77.78%)

file detail

path covered line new line coverage
🔵 io/questdb/cutlass/line/tcp/LineTcpMeasurementScheduler.java 7 9 77.78%

@bluestreak01 bluestreak01 merged commit 6575512 into master Sep 25, 2025
35 checks passed
@bluestreak01 bluestreak01 deleted the puzpuzpuz_ilp_tcp_protocol_error branch September 25, 2025 22:20
bluestreak01 pushed a commit that referenced this pull request Oct 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Incorrect or unexpected behavior ILP Issues or changes relating to Influx Line Protocol

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants