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

source-kafka: extend metadata timeout #2154

Merged
merged 1 commit into from
Nov 18, 2024
Merged

source-kafka: extend metadata timeout #2154

merged 1 commit into from
Nov 18, 2024

Conversation

williamhbaker
Copy link
Member

@williamhbaker williamhbaker commented Nov 18, 2024

Description:

This timeout is used for fetching cluster metadata during the interactive discover and validation operations.

We need some kind of timeout here since its not uncommon for misconfigured configurations to end up hanging forever when trying to connect, but it can also take a little while for all the metadata to be returned from a Kafka cluster if there is a lot of it.

This extends the timeout from a pretty restrictive 5 seconds to a much more permissive 60 seconds. 60 seconds is quite a while for a discover/validate attempt to hang if the configuration is incorrect but that seems like a better direction to err on than failing correct configurations too soon for particularly large clusters.

Workflow steps:

(How does one use this feature, and how has it changed)

Documentation links affected:

(list any documentation links that you created, or existing ones that you've identified as needing updates, along with a brief description)

Notes for reviewers:

(anything that might help someone review this PR)


This change is Reviewable

This timeout is used for fetching cluster metadata during the interactive
discover and validation operations.

We need some kind of timeout here since its not uncommon for misconfigured
configurations to end up hanging forever when trying to connect, but it can also
take a little while for all the metadata to be returned from a Kafka cluster if
there is a lot of it.

This extends the timeout from a pretty restrictive 5 seconds to a much more
permissive 60 seconds. 60 seconds is quite a while for a discover/validate
attempt to hang if the configuration is incorrect but that seems like a better
direction to err on than failing correct configurations too soon for
particularly large clusters.
Copy link
Member

@willdonnelly willdonnelly left a comment

Choose a reason for hiding this comment

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

LGTM

@williamhbaker williamhbaker merged commit ea4d8c4 into main Nov 18, 2024
51 of 53 checks passed
@williamhbaker williamhbaker deleted the wb/kafka-timeout branch November 18, 2024 22:25
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