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

Break FindGroupCoordinator into request/response methods #1871

Merged

Conversation

jeffwidman
Copy link
Collaborator

@jeffwidman jeffwidman commented Jul 31, 2019

This splits the FindGroupCoordinator function (which is blocking) into
request generation / response parsing methods.

The public API does not change. However, this allows power users who are
willing to deal with risk of private methods changing under their feet
to decouple generating the message futures from processing their
responses. In other words, you can use these to fire a bunch of requests
at once and delay processing the responses until all requests are fired.

This is modeled on the work done in #1845.

Additionally, I removed the code that tried to leverage the error
checking from cluster.add_group_coordinator(). That code had changed
in #1822, removing most of the error checking... so it no longer adds
any value, but instead merely increases complexity and coupling.


This change is Reviewable

@jeffwidman jeffwidman force-pushed the break-find-group-coordinator-into-request-response-methods branch from 4491839 to 6f61067 Compare July 31, 2019 08:34
This splits the `_find_coordinator_id()` method (which is blocking) into
request generation / response parsing methods.

The public API does not change. However, this allows power users who are
willing to deal with risk of private methods changing under their feet
to decouple generating the message futures from processing their
responses. In other words, you can use these to fire a bunch of requests
at once and delay processing the responses until all requests are fired.

This is modeled on the work done in #1845.

Additionally, I removed the code that tried to leverage the error
checking from `cluster.add_group_coordinator()`. That code had changed
in #1822, removing most of the error checking... so it no longer adds
any value, but instead merely increases complexity and coupling.
@jeffwidman jeffwidman force-pushed the break-find-group-coordinator-into-request-response-methods branch from 6f61067 to 941e908 Compare July 31, 2019 18:23
@jeffwidman jeffwidman merged commit ea35fdf into master Jul 31, 2019
@jeffwidman jeffwidman deleted the break-find-group-coordinator-into-request-response-methods branch July 31, 2019 18:26
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