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).

@zmstone zmstone force-pushed the fix/timeout-brod-client branch from 8d57160 to d8b75a2 Compare February 5, 2022 09:19
brod_client safe_gen_call implementation leaked timeouts
all safe_gen_call calls have infinity timeout
@zmstone zmstone force-pushed the fix/timeout-brod-client branch from d8b75a2 to 08fb56c Compare February 5, 2022 09:23
@zmstone zmstone force-pushed the fix/timeout-brod-client branch from 08fb56c to f867a4a Compare February 5, 2022 10:11
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 force-pushed the fix/timeout-brod-client branch from f867a4a to 32d09d6 Compare February 6, 2022 13:29
@zmstone zmstone requested review from id, k32 and qzhuyan February 6, 2022 13:29
@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