-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Conversation
16b1257
to
f6d8334
Compare
📚 Documentation Preview🧹 Preview deployment has been cleaned up The documentation preview for this PR has been removed since the PR was closed. |
ca89046
to
fed36b3
Compare
There was a problem hiding this 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
andretry_timeout
options to ensure both settings are honored during reconnection.
save_tcp "0.0.0.0:3000", retry_delay=1s
tenzir/bats/data/reference/pipelines_local/test_parse_operators/step_14.ref
Show resolved
Hide resolved
fed36b3
to
6af9b79
Compare
79e11c6
to
8d76b05
Compare
03473a3
to
8d76b05
Compare
76e4856
to
ab8ffab
Compare
e0ca0a5
to
1e84c90
Compare
This commit was partially vibe-coded. I only fixed up the accidental deletions that made the build break.
1e84c90
to
bb13715
Compare
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
andmax_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.