Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Hold lock during KafkaClient.check_version #1771

Merged
merged 1 commit into from
Apr 1, 2019
Merged

Conversation

dpkp
Copy link
Owner

@dpkp dpkp commented Mar 31, 2019

Since we only call client.check_version() once in the __init__ of KafkaClient, holding the lock shouldn't be strictly necessary. Nonetheless, I think it makes maintenance a little easier. And in case check_version() is moved out of __init__, this should help avoid race conditions.


This change is Reviewable

@dpkp dpkp merged commit 3664ae8 into master Apr 1, 2019
@dpkp dpkp deleted the lock_client_check_version branch April 1, 2019 01:38
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant