Skip to content

Minor Heartbeat updates: catch more exceptions / log configuration / raise KafkaConfigurationError #2618

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

Merged
merged 2 commits into from
May 13, 2025

Conversation

dpkp
Copy link
Owner

@dpkp dpkp commented May 13, 2025

I noticed that we dont log the heartbeat configuration anywhere, so adding to help with debugging.
Also updating config checks to warn if heartbeat is above recommended 1/3rd of session timeout.
Biggest change is to catch all Exception in heartbeat thread run loop. RuntimeError may have been too limiting, and if we fail to catch an exception that stops the thread without setting self.failed then we will never restart the heartbeat thread and will not be able to send any additional heartbeats -- and worse the error does not get logged and the user is not alerted.

@dpkp dpkp merged commit 71c10f4 into master May 13, 2025
18 checks passed
@dpkp dpkp deleted the dpkp/heartbeat-minor-changes branch May 13, 2025 17:08
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.

1 participant