8000 fix: [ENG-2104] fix kgo consumer to gracefully fail on network failure by philippeturner · Pull Request #87 · clinia/x · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: [ENG-2104] fix kgo consumer to gracefully fail on network failure #87

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

philippeturner
Copy link
Contributor
@philippeturner philippeturner commented Jan 14, 2025

There is an issue with the consumer that happens when the network fails and we try to resubscribe, this scenario prevents the closure of the client and we hold a zombie consumer with redpanda.

This is to prevent this issue, this refactor ensure that we always close the client at the end of the execution and that we never reuse the same client. This increase the resiliency of the system.

@philippeturner philippeturner force-pushed the fix/eng-2104-investigate-and-fix-kgox-consumer-bug-that-hang-connection branch from 59c93ff to 6e86b36 Compare January 14, 2025 20:35
@philippeturner philippeturner marked this pull request as ready for review January 14, 2025 20:36
@@ -44,6 +44,7 @@ require (
go.opentelemetry.io/otel/sdk v1.30.0
go.opentelemetry.io/otel/trace v1.30.0
go.opentelemetry.io/proto/otlp v1.0.0
go.uber.org/goleak v1.2.1
Copy link
Contributor
@pobeaulieucl pobeaulieucl Jan 15, 2025

Choose a reason for hiding this comment

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

This is great, many tests would benefit from this

Copy link
Contributor
@pobeaulieucl pobeaulieucl left a comment

Choose a reason for hiding this comment

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

LGTM! Great tests

@philippeturner philippeturner merged commit eedeeb7 into main Jan 16, 2025
3 checks passed
@philippeturner philippeturner deleted the fix/eng-2104-investigate-and-fix-kgox-consumer-bug-that-hang-connection branch January 16, 2025 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0