8000 Make save_tcp reconnect on network outages by tobim · Pull Request #5230 · tenzir/tenzir · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Make save_tcp reconnect on network outages #5230

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

Merged
merged 17 commits into from
Jun 26, 2025
Merged

Make save_tcp reconnect on network outages #5230

merged 17 commits into from
Jun 26, 2025

Conversation

tobim
Copy link
Member
@tobim tobim commented May 29, 2025

The save_tcp (from "tcp://...") operator now tries to reconnect in case of recoverable errors such as network outages and in case the remote end disconnects.

You can use the new options retry_delay: duration and max_retry_count: int to tune the behavior to your needs. The default values are set to 30 seconds and 10 times respectively.

This PR also removes the TQL1 TCP connector plugin.

@tobim tobim added connector Loader and saver operator Source, transformation, and sink improvement An incremental enhancement of an existing feature labels May 29, 2025
@tobim tobim changed the title Topic/tcp reconnect Make save_tcp reconnect on network outages May 29, 2025
@tobim tobim force-pushed the topic/tcp-reconnect branch from 16b1257 to f6d8334 Compare May 30, 2025 05:16
Copy link
github-actions bot commented Jun 2, 2025

📚 Documentation Preview

🧹 Preview deployment has been cleaned up

The documentation preview for this PR has been removed since the PR was closed.

@tobim tobim force-pushed the topic/tcp-reconnect branch from ca89046 to fed36b3 Compare June 3, 2025 10:59
@raxyte raxyte requested a review from Copilot June 3, 2025 11:48
Copy link
Contributor
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the save_tcp operator by adding automatic reconnection on recoverable errors, introduces new retry tuning options, and removes the legacy TQL1 TCP connector plugin.

  • Adds an end-to-end test for save_tcp reconnect behavior
  • Updates parsing error hints to drop the removed tcp loader option
  • Introduces a changelog entry for the reconnect feature

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tenzir/tests/exec/operators/save_tcp/reconnect.txt Sample messages for reconnect test
tenzir/tests/exec/operators/save_tcp/reconnect.tql TQL pipeline exercising reconnect and retry options
tenzir/bats/data/reference/pipelines_local/test_parse_operators/step_19.ref Removed tcp from supported loader hint
tenzir/bats/data/reference/pipelines_local/test_parse_operators/step_15.ref Removed tcp from supported loader hint
tenzir/bats/data/reference/pipelines_local/test_parse_operators/step_14.ref Removed tcp from supported loader hint
changelog/changes/Ezv8Vz2A1XgON7euQJjkNvrhQM.md New feature entry describing reconnect behavior
Comments suppressed due to low confidence (1)

tenzir/tests/exec/operators/save_tcp/reconnect.tql:8

  • [nitpick] Add a complementary test that configures and verifies the new max_retry_delay and retry_timeout options to ensure both settings are honored during reconnection.
  save_tcp "0.0.0.0:3000", retry_delay=1s

@tobim tobim force-pushed the topic/tcp-reconnect branch from fed36b3 to 6af9b79 Compare June 4, 2025 10:47
@tobim tobim enabled auto-merge June 4, 2025 11:26
@tobim tobim force-pushed the topic/tcp-reconnect branch 2 times, most recently from 79e11c6 to 8d76b05 Compare June 4, 2025 21:13
@jachris jachris force-pushed the topic/tcp-reconnect branch from 03473a3 to 8d76b05 Compare June 5, 2025 08:22
@tobim tobim force-pushed the topic/tcp-reconnect branch 4 times, most recently from 76e4856 to ab8ffab Compare June 23, 2025 13:59
@tobim tobim force-pushed the topic/tcp-reconnect branch 2 times, most recently from e0ca0a5 to 1e84c90 Compare June 25, 2025 12:44
@tobim tobim force-pushed the topic/tcp-reconnect branch from 1e84c90 to bb13715 Compare June 26, 2025 08:26
@tobim tobim merged commit 579110e into main Jun 26, 2025
70 of 72 checks passed
@tobim tobim deleted the topic/tcp-reconnect branch June 26, 2025 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
connector Loader and saver improvement An incremental enhancement of an existing feature operator Source, transformation, and sink
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0