-
Notifications
You must be signed in to change notification settings - Fork 14.6k
KAFKA-19276: Trigger rebalance for streams config update #19967
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
base: trunk
Are you sure you want to change the base?
Conversation
A label of 'needs-attention' was automatically added to this PR in order to raise the |
@lucasbru Hey Lucas. This is my proposed solution for KAFKA-19276. Could you please check the idea, and if all good I'll add tests and java docs |
Hey @UladzislauBlok . Thanks for your contribution! With the 4.1 release, I did not get to review this - but I will! |
A label of 'needs-attention' was automatically added to this PR in order to raise the |
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.
I left a first round of comments to better undestand this PR
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupConfig.java
Outdated
Show resolved
Hide resolved
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/ConfigUpdateEvent.java
Outdated
Show resolved
Hide resolved
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupConfigManager.java
Outdated
Show resolved
Hide resolved
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java
Outdated
Show resolved
Hide resolved
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java
Outdated
Show resolved
Hide resolved
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupConfigManager.java
Outdated
Show resolved
Hide resolved
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupConfigListener.java
Outdated
Show resolved
Hide resolved
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.
Thanks for you updated. I left some further comments. Not sure we have quite nailed the design yet.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java
Outdated
Show resolved
Hide resolved
f44df0e
to
d21743e
Compare
@@ -272,6 +272,8 @@ public GroupCoordinatorShard build() { | |||
.withAuthorizerPlugin(authorizerPlugin) | |||
.build(); | |||
|
|||
groupConfigManager.registerListener(groupMetadataManager); |
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.
I don't think this will work. There is only a single groupConfigManager, but there is one group metadata manager per metrics shared. I think we have to register the group coordinator service as a listener.
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.
My bad, didn't know about that. I'll prepare fix shortly
btw. any suggestion how to learn internal kafka design? Any good knowledge source?
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.
I don't think there is anything out htere that is kept up-to-date. There is only reading the code. I also did not know how many instances of GroupConfigManager
there are, I followed the code.
@UladzislauBlok thanks for the updates. This is looking good, unfortunately I don't have time for a final review today and leaving for PTO. This will have to wait until I come back - just letting you know that I haven't forgotten about it |
Create listener to react on config update.
Implementation was proposed by lucasbru. What was done: