Skip to content

Fix error in consumer.py test against max_buffer_size #225

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

Closed
wants to merge 1 commit into from

Conversation

rthille
Copy link

@rthille rthille commented Sep 2, 2014

Was using max(buf_size * 2, max_buf_size), which could result in a new
buffer size which exceeded the specified max_buffer_size by
(max_buffer_size - 1) bytes.

Was using max(buf_size * 2, max_buf_size), which could result in a new
buffer size which exceeded the specified max_buffer_size by
(max_buffer_size - 1) bytes.
@dpkp
Copy link
Owner

dpkp commented Sep 2, 2014

looks like a bug! travis build failure looks like a flapper (I restarted to verify).

Can you take a stab at adding a test? Should really be a unit test in test/test_consumer.py, but you could also add to integration test here:
https://github.com/mumrah/kafka-python/blob/master/test/test_consumer_integration.py#L244-L260

@rthille
Copy link
Author

rthille commented Sep 2, 2014

Yeah, I'll add some tests when I get some time. Work is kinda crazy right now :-)

@dpkp dpkp added the consumer label Sep 10, 2014
wizzat pushed a commit to wizzat/kafka-python that referenced this pull request Sep 23, 2014
wizzat added a commit that referenced this pull request Sep 23, 2014
Resolve merge conflict in PR #225
@wizzat
Copy link
Collaborator

wizzat commented Sep 23, 2014

Merged in #242

@wizzat wizzat closed this Sep 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants