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

fix encoding of MetadataResponse with version >= 2 #1174

Merged
merged 3 commits into from
Sep 26, 2018

Conversation

birdayz
Copy link
Contributor

@birdayz birdayz commented Sep 26, 2018

ThrottleTimeMs and ClusterID have been added to decode(), but apparently
encode() was forgotten. This causes errors in tests, if versions >= 2 are used.

ThrottleTimeMs and ClusterID have been added to decode(), but apparently
encode() was forgotten. This causes errors in tests, if versions >= 2 are used.
channels success and errors are not guaranteed to be closed before the channel
closed is closed. some tests, .e.g. TestProducerWithCheckerFunction relied on
this assumption, and produced race conditions (e.g. len(errors) is called after
producer.Close. with this change, close(mp.closed) is moved to the defer call,
after closing successes and errors.
@birdayz
Copy link
Contributor Author

birdayz commented Sep 26, 2018

@bai I fixed a race in the mock async producer, unrelated to this PR. should i move it to a separate PR?

@bai bai merged commit 434e22d into IBM:master Sep 26, 2018
@bai
Copy link
Contributor

bai commented Sep 26, 2018

Thanks!

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