-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
In C++ partitioned consumer, do not append partition index in subscription name #836
In C++ partitioned consumer, do not append partition index in subscription name #836
Conversation
LGTM, but will cause the ppl using the old client to lose messages on the incorrect subscription name. |
That's correct, though the idea is to fix it before anyone starts using it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
retest this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good. I hope none of our test is looking for subs in the old format.
99aa60e
to
8e079d6
Compare
ASSERT_FALSE(res != 204 && res != 409); | ||
|
||
Consumer partitionedConsumer; | ||
Result result = client.subscribe(topicName, "subscription-A", consumer); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the variable name consumer
(not partitionedConsumer
) correct?
retest this please |
👍 |
Motivation
As described in #827, the C++ partitioned consumer is appending the partition id to the subscription name, unlike the Java partitioned consumer. That breaks the assumptions made by many tools and APIs to associate the same subscription id across all the partitions (eg: unsubscribe a subscription from all partitions at once).
Modifications
Make C++ client to use the same convention as Java client in this case.