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

Make BrokerConnection .host / .port / .afi immutable #1422

Merged
merged 1 commit into from
Mar 9, 2018

Conversation

dpkp
Copy link
Owner

@dpkp dpkp commented Mar 9, 2018

Separating this from #1411. The underlying issue is that KafkaClient checks whether the broker metadata has changed when deciding whether to "recycle" an existing BrokerConnection or not (see _maybe_connect). The check examines .host and .port directly, which means that we are creating false positives when we assign new resolved values to these attributes. This means that we are not recycling BrokerConnection objects the way we want to at best, and at worst it means that we are not dropping the objects before trying all possible resolved connection addresses.

@dpkp dpkp merged commit ce96752 into master Mar 9, 2018
@dpkp dpkp deleted the conn_immutable_host_port_afi branch March 9, 2018 17:01
@jeffwidman
Copy link
Contributor

at worst it means that we are not dropping the objects before trying all possible resolved connection addresses.

I'm struggling to parse this... should the word "not" be omitted from the above?

# 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.

2 participants