Skip to content

MINOR: Fix failing test in ConsumeBenchTest:test_multiple_consumers_specifie…#6015

Merged
ijuma merged 2 commits intoapache:trunkfrom
stanislavkozlovski:patch-1
Dec 8, 2018
Merged

MINOR: Fix failing test in ConsumeBenchTest:test_multiple_consumers_specifie…#6015
ijuma merged 2 commits intoapache:trunkfrom
stanislavkozlovski:patch-1

Conversation

@stanislavkozlovski
Copy link
Copy Markdown
Contributor

@stanislavkozlovski stanislavkozlovski commented Dec 7, 2018

This is the error message we're after:

throw new ConfigException("You may not specify an explicit partition assignment when using multiple consumers in the same group."

We apparently changed it midway through #5810 and forgot to update the test

…d_group_partitions_should_raise

This test apparently never passed. The problem is that during the review of the Pull Request we forgot to update the test.
Copy link
Copy Markdown
Contributor

@dhruvilshah3 dhruvilshah3 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

@stanislavkozlovski
Copy link
Copy Markdown
Contributor Author

cc @cmccabe

Runs multiple consumers in the same group to read messages from specific partitions.
It is an invalid configuration to provide a consumer group and specific partitions.
"""
expected_error_msg = 'You may not specify an explicit partition assignment when using multiple consumers in the same group'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe we should only look for "explicit partition assignment" in the message.

Copy link
Copy Markdown
Member

@ijuma ijuma left a comment

Choose a reason for hiding this comment

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

LGTM

@ijuma ijuma merged commit 05dc36d into apache:trunk Dec 8, 2018
pengxiaolong pushed a commit to pengxiaolong/kafka that referenced this pull request Jun 14, 2019
…_group_partitions_should_raise (apache#6015)

This is the error message we're after:

"You may not specify an explicit partition assignment when using multiple consumers in the same group."

We apparently changed it midway through apache#5810 and forgot to update the test.

Reviewers: Dhruvil Shah <dhruvil@confluent.io>, Ismael Juma <ismael@juma.me.uk>
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.

3 participants