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

set timeout for kafka client conn #455

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

suchen-sci
Copy link
Contributor

Currently, for the Kafka client, the timeout is only applicable during the dialing process. Once the connection is established and conn.ReadPartitions is called, it may experience significant delays. This situation can occur if the Kafka server is unresponsive or slow to write responses, potentially taking several minutes. To address this issue, this pr introduces a timeout setting for the connection.

This may cause the problem in issue #442 .

@codecov-commenter
Copy link

codecov-commenter commented Dec 5, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6db5f70) 99.07% compared to head (40d5ed2) 99.07%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #455   +/-   ##
=======================================
  Coverage   99.07%   99.07%           
=======================================
  Files          85       85           
  Lines        5842     5842           
=======================================
  Hits         5788     5788           
  Misses         40       40           
  Partials       14       14           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@LokiWager LokiWager merged commit 62ba269 into megaease:main Dec 5, 2023
6 checks passed
@suchen-sci suchen-sci deleted the fix-kafka-timeout branch December 5, 2023 08:03
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