-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Use application name as default Kafka consumer group.id #15678
Conversation
Thanks for your pull request! The title of your pull request does not follow our editorial rules. Could you have a look?
|
86ccf73
to
beecdd1
Compare
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 to me!
I just made a small comment.
Draft to let CI run in my fork. I was thinking how to add a test for this, but couldn't find anything. I don't think SmallRye Reactive Messaging lets me access the internals, through which I could verify if the group ID is really set. I did verify it manually with a simple example application though. Also, #15632 says that a generated ID is only used in dev mode -- I couldn't find that anywhere in Quarkus code, and the SmallRye Reactive Messaging code generated a UUID unconditionally. So I think #15632 is just mistaken. |
Interesting coincidence, I just opened #15680 :). I'll rebase it once this is in. |
beecdd1
to
f6db501
Compare
No need, I'll wait :) |
CI passed in my fork. |
In principle, I think that the change is good. "A unique string that identifies the consumer group the application belongs to. If not set, a unique, generated id is used In a special case I need the previous behavior of a randomly generated group.id. How can I restore this behavior? |
It shouldn't contradict the doc, as I updated the doc in the same commit :-) If you want your group ID random, you can manually generate a random string and put it into an env var ( |
As I said on zulip, using a generated UUID needs to be a conscientious decision. |
Thank you for your answer. I agree with you. I think it's a good change. And using a generated UUID schould be a conscientious decision. But the doc seems to be not updated on the website And a mention in the Migration Guide would have saved me a lot of time. ;) Thanks again. I will solve it via the configuration. Perhaps you will also consider again whether an explicit configuration variable that activates the explicit use of a UUID is possible. Basically, the issue is that several replicas of one and the same microservice get different Group.IDs, to broadcast a message. It would be ideal if there could be a kind of "pool" for Group.ids. For example, MyApplication1 ... MyApplication5. If someone has an idea how to solve the problem of assigning exactly one of these GroupIds to each replica via a configuration, I would be very happy to hear about it. |
Hmm I wonder how that website is updated, maybe I updated a wrong file? Humm... |
Ah ah, now I know who to blame: 8a56a30 |
I'll submit a PR to re-add the new docs. |
Submitted #16262. |
Resolves #15632