Skip to content
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

safe_gen_call catches more exit exceptions #492

Merged
merged 6 commits into from
Feb 6, 2022
Merged

Conversation

zmstone
Copy link
Contributor

@zmstone zmstone commented Feb 5, 2022

Make safe_gen_calls catch all exit exceptions (propagated from the callee's DOWN event, or timeout).

brod_client safe_gen_call implementation leaked timeouts
all safe_gen_call calls have infinity timeout
Prior to this change the actual time spent in establishing a
Kafka connection might be longer than desired due to the timeout
being used in SSL upgrade (if enabled), then API version query.

This has been fixed by turning the given timeout config
into a deadline, and the sub-steps will try to meet the deadline.
see more details here:
kafka4beam/kafka_protocol#92
@zmstone zmstone merged commit 2253f67 into master Feb 6, 2022
@zmstone zmstone deleted the fix/timeout-brod-client branch February 6, 2022 18:46
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.

3 participants