-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
KAFKA-18341: Remove KafkaConfig GroupType config check and warn log #18320
Conversation
A label of 'needs-attention' was automatically added to this PR in order to raise the |
@@ -542,15 +542,7 @@ class KafkaConfig private(doLog: Boolean, val props: util.Map[_, _]) | |||
if (!protocols.contains(GroupType.CLASSIC)) { | |||
throw new ConfigException(s"Disabling the '${GroupType.CLASSIC}' protocol is not supported.") | |||
} | |||
if (protocols.contains(GroupType.CONSUMER)) { | |||
if (processRoles.isEmpty || !isNewGroupCoordinatorEnabled) { |
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 think that we need to keep the second part of the condition.
@@ -542,15 +542,7 @@ class KafkaConfig private(doLog: Boolean, val props: util.Map[_, _]) | |||
if (!protocols.contains(GroupType.CLASSIC)) { | |||
throw new ConfigException(s"Disabling the '${GroupType.CLASSIC}' protocol is not supported.") | |||
} | |||
if (protocols.contains(GroupType.CONSUMER)) { | |||
if (processRoles.isEmpty || !isNewGroupCoordinatorEnabled) { | |||
warn(s"The new '${GroupType.CONSUMER}' rebalance protocol is only supported in KRaft cluster with the new group coordinator.") |
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.
We could remove in KRaft cluster
if (protocols.contains(GroupType.SHARE)) { | ||
if (processRoles.isEmpty || !isNewGroupCoordinatorEnabled) { |
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.
ditto.
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
…18320) As ZK mode is being removed for 4.0, we don't need this check anymore. Reviewers: David Jacot <djacot@confluent.io>
Merged to trunk and 4.0. |
…pache#18320) As ZK mode is being removed for 4.0, we don't need this check anymore. Reviewers: David Jacot <djacot@confluent.io>
…pache#18320) As ZK mode is being removed for 4.0, we don't need this check anymore. Reviewers: David Jacot <djacot@confluent.io>
Jira: https://issues.apache.org/jira/browse/KAFKA-18341
As we will remove zookeeper, we don't need this warn log when we start server
Committer Checklist (excluded from commit message)