Skip to content

Commit 7387a11

Browse files
authored
KAFKA-14363; Add new group-coordinator module (KIP-848) (apache#12827)
Introduce new group-coordinator module that will host the future new group coordinator as part of KIP-848. Reviewers: Ismael Juma <[email protected]>
1 parent c034388 commit 7387a11

File tree

5 files changed

+82
-0
lines changed

5 files changed

+82
-0
lines changed

build.gradle

+37
Original file line numberDiff line numberDiff line change
@@ -865,10 +865,12 @@ project(':core') {
865865
api libs.scalaLibrary
866866

867867
implementation project(':server-common')
868+
implementation project(':group-coordinator')
868869
implementation project(':metadata')
869870
implementation project(':raft')
870871
implementation project(':storage')
871872

873+
872874
implementation libs.argparse4j
873875
implementation libs.jacksonDatabind
874876
implementation libs.jacksonModuleScala
@@ -896,6 +898,7 @@ project(':core') {
896898
compileOnly libs.log4j
897899

898900
testImplementation project(':clients').sourceSets.test.output
901+
testImplementation project(':group-coordinator').sourceSets.test.output
899902
testImplementation project(':metadata').sourceSets.test.output
900903
testImplementation project(':raft').sourceSets.test.output
901904
testImplementation project(':server-common').sourceSets.test.output
@@ -1222,6 +1225,40 @@ project(':metadata') {
12221225
}
12231226
}
12241227

1228+
project(':group-coordinator') {
1229+
archivesBaseName = "kafka-group-coordinator"
1230+
1231+
dependencies {
1232+
implementation project(':server-common')
1233+
implementation project(':clients')
1234+
implementation libs.slf4jApi
1235+
1236+
testImplementation project(':clients').sourceSets.test.output
1237+
testImplementation project(':server-common').sourceSets.test.output
1238+
testImplementation libs.junitJupiter
1239+
testImplementation libs.mockitoCore
1240+
1241+
testRuntimeOnly libs.slf4jlog4j
1242+
}
1243+
1244+
sourceSets {
1245+
main {
1246+
java {
1247+
srcDirs = ["src/generated/java", "src/main/java"]
1248+
}
1249+
}
1250+
test {
1251+
java {
1252+
srcDirs = ["src/generated/java", "src/test/java"]
1253+
}
1254+
}
1255+
}
1256+
1257+
javadoc {
1258+
enabled = false
1259+
}
1260+
}
1261+
12251262
project(':examples') {
12261263
archivesBaseName = "kafka-examples"
12271264

group-coordinator/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/bin/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
package org.apache.kafka.coordinator.group;
19+
20+
public interface GroupCoordinator {
21+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one or more
2+
# contributor license agreements. See the NOTICE file distributed with
3+
# this work for additional information regarding copyright ownership.
4+
# The ASF licenses this file to You under the Apache License, Version 2.0
5+
# (the "License"); you may not use this file except in compliance with
6+
# the License. You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
log4j.rootLogger=DEBUG, stdout
16+
17+
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
18+
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
19+
log4j.appender.stdout.layout.ConversionPattern=[%d] %p %m (%c:%L)%n
20+
21+
log4j.logger.org.apache.kafka=DEBUG
22+
log4j.logger.org.apache.zookeeper=WARN

settings.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ include 'clients',
2525
'core',
2626
'examples',
2727
'generator',
28+
'group-coordinator',
2829
'jmh-benchmarks',
2930
'log4j-appender',
3031
'metadata',

0 commit comments

Comments
 (0)