Skip to content
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-17532: Moved ShareGroupConfig to share module #17176

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

chirag-wadhwa5
Copy link
Contributor

In this PR, the ShareGroupConfig has been moved to the share package. Since the config GROUP_COORDINATOR_REBALANCE_PROTOCOLS_CONFIG from GroupCoordinatorConfig is required in ShareGroupConfig, and share cannot depend on group-coordinator, GROUP_COORDINATOR_REBALANCE_PROTOCOLS_CONFIG has been moved to a separate config file called CoordinatorCommonConfig in coordinator-common

Reference - KAFKA-17532

@@ -954,6 +956,8 @@ project(':share') {

dependencies {
implementation project(':server-common')
implementation project(':clients')
implementation project(':coordinator-common')
Copy link
Collaborator

Choose a reason for hiding this comment

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

Isn't there is a cycle i.e. coordinator-common requires server, server requires share and share requires coordinator-common?

Copy link
Collaborator

@apoorvmittal10 apoorvmittal10 left a comment

Choose a reason for hiding this comment

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

Looks mosty fine. Some comments to address.

@@ -40,6 +40,9 @@

<subpackage name="coordinator">
<subpackage name="common">

<allow pkg="org.apache.kafka.common" />
Copy link
Collaborator

Choose a reason for hiding this comment

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

Line number 34 - 39 above defines common classes. Which common package do we need explitily, can we please include that above.

@@ -33,6 +33,9 @@
<!-- anyone can use public classes -->
<allow pkg="org.apache.kafka.common" exact-match="true" />
<allow pkg="org.apache.kafka.common.utils" />
<allow pkg="org.apache.kafka.common.config" />
<allow pkg="org.apache.kafka.common.errors" />
<allow pkg="org.apache.kafka.coordinator.common" />
Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems not the right section to include coordinator.

@@ -202,7 +202,7 @@ public void testSupportedNewGroupProtocols(ClusterInstance clusterInstance) {

@ClusterTests({
@ClusterTest(types = {Type.ZK, Type.KRAFT, Type.CO_KRAFT}, serverProperties = {
@ClusterConfigProperty(key = GROUP_COORDINATOR_REBALANCE_PROTOCOLS_CONFIG, value = "classic"),
@ClusterConfigProperty(key = GROUP_COORDINATOR_REBALANCE_PROTOCOLS_CONFIG, value = "Classic"),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why this change is required?

@@ -72,7 +72,7 @@ abstract class IntegrationTestHarness extends KafkaServerTestHarness {
cfgs.foreach(_.setProperty(KRaftConfigs.MIGRATION_ENABLED_CONFIG, "true"))
}
if (isShareGroupTest()) {
cfgs.foreach(_.setProperty(GroupCoordinatorConfig.GROUP_COORDINATOR_REBALANCE_PROTOCOLS_CONFIG, "classic,consumer,share"))
cfgs.foreach(_.setProperty(CoordinatorCommonConfig.GROUP_COORDINATOR_REBALANCE_PROTOCOLS_CONFIG, "Classic,Consumer,Share"))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we need to change "Classic,Consumer,Share"?

@@ -43,7 +44,7 @@ class ConsumerGroupHeartbeatRequestTest(cluster: ClusterInstance) {
@ClusterTest(
types = Array(Type.KRAFT),
serverProperties = Array(
new ClusterConfigProperty(key = GroupCoordinatorConfig.GROUP_COORDINATOR_REBALANCE_PROTOCOLS_CONFIG, value = "classic"),
new ClusterConfigProperty(key = CoordinatorCommonConfig.GROUP_COORDINATOR_REBALANCE_PROTOCOLS_CONFIG, value = "Classic"),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Agains same is Classic change is required?

@apoorvmittal10 apoorvmittal10 added the KIP-932 Queues for Kafka label Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
KIP-932 Queues for Kafka
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants