Skip to content

Conversation

@jacob-curley-fnal
Copy link
Contributor

@jacob-curley-fnal jacob-curley-fnal commented Dec 1, 2025

Resolves #64 by wrapping the Kafka Consumer creation logic in a thread. The recv_timeout method is then utilized to wait a limited time for the connection and abort if none can be made. This is a short-circuit of the eventual timeout that the Kafka crate would reach on its own, albeit much later than the 1 second hardcoded here.

Open question: should the timeout duration be a configurable environment variable as well?

Copy link
Contributor

@beauremus beauremus left a comment

Choose a reason for hiding this comment

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

LGTM :shipit:

@jacob-curley-fnal
Copy link
Contributor Author

Went ahead and added a new env var for the connection timeout, in case 1 second isn't enough time in prod

@jacob-curley-fnal jacob-curley-fnal merged commit 89a10db into main Dec 2, 2025
1 check passed
@jacob-curley-fnal jacob-curley-fnal deleted the flaky_unit_test branch December 2, 2025 22:04
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.

Unit tests don't complete on *acsys-proxy*

3 participants