Skip to content

Conversation

@dpkp
Copy link
Owner

@dpkp dpkp commented Mar 31, 2019

Small change to KafkaClient's state_change_callback to attempt to avoid re-fetching Metadata or increasing bootstrap failure count after an intentional disconnect / conn.close()


This change is Reviewable

node_id (int, optional): the id of the node to close
"""
with self._lock:
if node_id is None:
Copy link
Contributor

Choose a reason for hiding this comment

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

while the code is relatively clear, it'd be nice if the docstring stated that node_id=None results in closing all broker connections. The docstring implies it, but doesn't say that explicitly.

@dpkp dpkp merged commit 51313d7 into master Apr 2, 2019
@dpkp dpkp deleted the popped_conn_close branch April 2, 2019 02:38
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