Skip to content

Commit 7b6ff63

Browse files
Merge remote-tracking branch 'origin/trunk' into KAFKA-19019 for pipeline build failure
2 parents 2b074d9 + c73d97d commit 7b6ff63

File tree

317 files changed

+11701
-7955
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

317 files changed

+11701
-7955
lines changed

.asf.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ notifications:
2929
# Read more here: https://github.com/apache/infrastructure-asfyaml
3030
github:
3131
collaborators:
32-
- apoorvmittal10
3332
- brandboat
34-
- frankvicky
3533
- FrankYang0529
3634
- gongxuanzhang
3735
- m1a2st
3836
- mingyen066
37+
- ShivsundarR
3938
- smjn
4039
- TaiJuWu
4140
- xijiu
41+
- Yunyung
4242
enabled_merge_buttons:
4343
squash: true
4444
squash_commit_message: PR_TITLE_AND_DESC

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ fail due to code changes. You can just run:
9999

100100
./gradlew processMessages processTestMessages
101101

102+
See [Apache Kafka Message Definitions](clients/src/main/resources/common/message/README.md) for details on Apache Kafka message protocol.
103+
102104
### Running a Kafka broker
103105

104106
Using compiled files:
@@ -111,6 +113,8 @@ Using docker image:
111113

112114
docker run -p 9092:9092 apache/kafka:latest
113115

116+
See [docker/README.md](docker/README.md) for detailed information.
117+
114118
### Cleaning the build ###
115119
./gradlew clean
116120

@@ -263,10 +267,20 @@ default. See https://www.lightbend.com/blog/scala-inliner-optimizer for more det
263267

264268
See [tests/README.md](tests/README.md).
265269

270+
### Using Trogdor for testing ###
271+
272+
We use Trogdor as a test framework for Apache Kafka. You can use it to run benchmarks and other workloads.
273+
274+
See [trogdor/README.md](trogdor/README.md).
275+
266276
### Running in Vagrant ###
267277

268278
See [vagrant/README.md](vagrant/README.md).
269279

280+
### Kafka client examples ###
281+
282+
See [examples/README.md](examples/README.md).
283+
270284
### Contribution ###
271285

272286
Apache Kafka is interested in building the community; we would welcome any thoughts or [patches](https://issues.apache.org/jira/browse/KAFKA). You can reach us [on the Apache mailing lists](http://kafka.apache.org/contact.html).

bin/kafka-run-class.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ if [ -z "$KAFKA_LOG4J_OPTS" ]; then
225225
(( WINDOWS_OS_FORMAT )) && LOG4J_DIR=$(cygpath --path --mixed "${LOG4J_DIR}")
226226
KAFKA_LOG4J_OPTS="-Dlog4j2.configurationFile=${LOG4J_DIR}"
227227
else
228-
if echo "$KAFKA_LOG4J_OPTS" | grep -E "log4j\.[^[:space:]]+(\.properties|\.xml)$"; then
228+
if echo "$KAFKA_LOG4J_OPTS" | grep -E "log4j\.[^[:space:]]+(\.properties|\.xml)$" >/dev/null; then
229229
# Enable Log4j 1.x configuration compatibility mode for Log4j 2
230230
export LOG4J_COMPATIBILITY=true
231231
echo DEPRECATED: A Log4j 1.x configuration file has been detected, which is no longer recommended. >&2

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2242,6 +2242,7 @@ project(':storage') {
22422242
testImplementation project(':clients').sourceSets.test.output
22432243
testImplementation project(':core')
22442244
testImplementation project(':core').sourceSets.test.output
2245+
testImplementation project(':storage:storage-api').sourceSets.test.output
22452246
testImplementation project(':test-common:test-common-internal-api')
22462247
testImplementation project(':test-common:test-common-runtime')
22472248
testImplementation project(':test-common:test-common-util')
@@ -3737,7 +3738,7 @@ project(':connect:mirror') {
37373738
testImplementation project(':core')
37383739
testImplementation project(':test-common:test-common-runtime')
37393740
testImplementation project(':server')
3740-
testImplementation project(':server-common').sourceSets.test.output
3741+
testImplementation project(':server-common')
37413742

37423743

37433744
testRuntimeOnly project(':connect:runtime')

checkstyle/import-control-clients-integration-tests.xml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,17 @@
1919
-->
2020

2121
<import-control pkg="org.apache.kafka">
22-
<allow pkg="java" />
23-
<allow pkg="org.junit" />
22+
<allow pkg="java"/>
23+
<allow pkg="org.junit"/>
24+
<allow pkg="scala" />
2425

25-
<!-- These are tests, allow whatever -->
26-
<allow pkg="org.apache.kafka"/>
27-
<allow pkg="org.junit" />
28-
<allow pkg="kafka"/>
26+
<!-- These are tests, allow whatever -->
27+
<allow pkg="org.apache.kafka"/>
28+
<allow pkg="org.junit"/>
29+
<allow pkg="kafka"/>
30+
31+
<subpackage name="clients.producer">
32+
<allow pkg="org.opentest4j"/>
33+
</subpackage>
2934

3035
</import-control>

checkstyle/import-control-core.xml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -66,20 +66,6 @@
6666
<allow class="com.fasterxml.jackson.annotation.JsonIgnoreProperties" />
6767
</subpackage>
6868

69-
<subpackage name="log.remote">
70-
<allow pkg="org.apache.kafka.server.common" />
71-
<allow pkg="org.apache.kafka.server.log.remote" />
72-
<allow pkg="org.apache.kafka.server.log.remote.quota" />
73-
<allow pkg="org.apache.kafka.server.metrics" />
74-
<allow pkg="org.apache.kafka.storage.internals" />
75-
<allow pkg="org.apache.kafka.storage.log.metrics" />
76-
<allow pkg="kafka.log" />
77-
<allow pkg="kafka.cluster" />
78-
<allow pkg="kafka.server" />
79-
<allow pkg="org.mockito" />
80-
<allow pkg="org.apache.kafka.test" />
81-
</subpackage>
82-
8369
<subpackage name="server">
8470
<allow pkg="kafka" />
8571
<allow pkg="org.apache.kafka" />

checkstyle/import-control-metadata.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@
176176
<allow pkg="org.apache.kafka.controller" />
177177
<allow pkg="org.apache.kafka.metadata" />
178178
<allow pkg="org.apache.kafka.common.internals" />
179+
<allow pkg="org.apache.kafka.common.metrics" />
180+
<allow pkg="org.apache.kafka.common.metrics.internals" />
181+
<allow pkg="org.apache.kafka.common.metrics.stats" />
179182
</subpackage>
180183
<subpackage name="bootstrap">
181184
<allow pkg="org.apache.kafka.snapshot" />

checkstyle/import-control-server-common.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@
130130
</subpackage>
131131
<subpackage name="config">
132132
<allow pkg="org.apache.kafka.server"/>
133+
<allow pkg="org.apache.kafka.clients"/>
133134
</subpackage>
134135
</subpackage>
135136

checkstyle/import-control-server.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,10 @@
8282
<allow pkg="org.apache.kafka.raft" />
8383

8484
<subpackage name="server">
85+
<allow pkg="javax.crypto" />
8586
<allow pkg="org.apache.kafka.server" />
8687
<allow pkg="org.apache.kafka.image" />
88+
<allow pkg="org.apache.kafka.network.metrics" />
8789
<allow pkg="org.apache.kafka.storage.internals.log" />
8890
<allow pkg="org.apache.kafka.storage.internals.checkpoint" />
8991
<subpackage name="metrics">
@@ -103,6 +105,7 @@
103105
<subpackage name="security">
104106
<allow pkg="org.apache.kafka.common.resource" />
105107
<allow pkg="org.apache.kafka.network" />
108+
<allow pkg="org.apache.kafka.server" />
106109
<allow pkg="org.apache.kafka.server.authorizer" />
107110
</subpackage>
108111

checkstyle/import-control-storage.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
<allow pkg="org.junit" />
3030
<allow pkg="org.hamcrest" />
3131
<allow pkg="org.mockito" />
32+
<allow pkg="org.opentest4j" />
3233
<allow pkg="java.security" />
3334
<allow pkg="javax.net.ssl" />
3435
<allow pkg="javax.security" />
@@ -74,8 +75,12 @@
7475
</subpackage>
7576
<subpackage name="storage">
7677
<allow pkg="com.yammer.metrics.core" />
77-
<allow pkg="org.apache.kafka.server.metrics" />
7878
<allow pkg="org.apache.kafka.common.test" />
79+
<allow pkg="org.apache.kafka.server.metrics" />
80+
<allow pkg="org.apache.kafka.server.purgatory" />
81+
<allow pkg="org.apache.kafka.server.quota" />
82+
<allow pkg="org.apache.kafka.server.storage.log" />
83+
<allow pkg="org.apache.kafka.server.util" />
7984
</subpackage>
8085
</subpackage>
8186
</subpackage>
@@ -88,6 +93,7 @@
8893
<allow pkg="com.fasterxml.jackson" />
8994
<allow pkg="com.yammer.metrics.core" />
9095
<allow pkg="org.apache.kafka.common" />
96+
<allow pkg="org.apache.kafka.config" />
9197
<allow pkg="org.apache.kafka.server"/>
9298
<allow pkg="org.apache.kafka.storage.internals"/>
9399
<allow pkg="org.apache.kafka.storage.log.metrics"/>

0 commit comments

Comments
 (0)