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

refactor ConsumerMetadataReq/Resp -> FindCoordinatorReq/Resp #1010

Merged
merged 2 commits into from
Feb 13, 2018
Merged

refactor ConsumerMetadataReq/Resp -> FindCoordinatorReq/Resp #1010

merged 2 commits into from
Feb 13, 2018

Conversation

buyology
Copy link

As part of KIP-98 and for the impl of the transactional producer the GroupCoordinatorRequest/ConsumerMetadataRequest has been renamed FindCoordinatorRequest and now serves the dual purpose of both looking up consumer group and transaction coordinator.

This PR moves the logic to FindCoordinatorRequest, transitions getConsumerMetadata to use FindCoordinatorRequest, and provides transparent backwards compatibility for the ConsumerMetadataRequest.

Coordinator *Broker
CoordinatorID int32 // deprecated: use Coordinator.ID()
CoordinatorHost string // deprecated: use Coordinator.Addr()
CoordinatorPort int32 // deprecated: use Coordinator.Addr()
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we take this opportunity to remove these, since this is technically a new struct?

Copy link
Author

Choose a reason for hiding this comment

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

Good call. Done.

@eapache
Copy link
Contributor

eapache commented Feb 13, 2018

Thanks! Sorry I kind of forgot about this PR for a while.

@eapache eapache merged commit 5c0a1f5 into IBM:master Feb 13, 2018
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.

2 participants