Skip to content

Commit d67cb1b

Browse files
authored
Add support for Kafka 2.7.1 and remove 2.6.x (strimzi#4973)
Signed-off-by: Jakub Scholz <[email protected]>
1 parent 6c0db8d commit d67cb1b

File tree

10 files changed

+29
-348
lines changed

10 files changed

+29
-348
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## 0.24.0
44

5+
* Add support for Kafka 2.7.1 and remove support for 2.6.0, 2.6.1, and 2.6.2
56

67
## 0.23.0
78

docker-images/kafka/kafka-thirdparty-libs/2.6.x/pom.xml

-282
This file was deleted.

documentation/modules/snip-images.adoc

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@
66

77
|Kafka
88
a|
9-
* {DockerOrg}/kafka:{DockerTag}-kafka-2.6.0
10-
* {DockerOrg}/kafka:{DockerTag}-kafka-2.6.1
11-
* {DockerOrg}/kafka:{DockerTag}-kafka-2.6.2
129
* {DockerOrg}/kafka:{DockerTag}-kafka-2.7.0
10+
* {DockerOrg}/kafka:{DockerTag}-kafka-2.7.1
1311
* {DockerOrg}/kafka:{DockerTag}-kafka-2.8.0
1412

1513
a|

documentation/modules/snip-kafka-versions.adoc

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
[options="header"]
77
|=================
88
|Kafka version |Interbroker protocol version |Log message format version| ZooKeeper version
9-
| 2.6.0 | 2.6 | 2.6 | 3.5.8
10-
| 2.6.1 | 2.6 | 2.6 | 3.5.8
11-
| 2.6.2 | 2.6 | 2.6 | 3.5.9
129
| 2.7.0 | 2.7 | 2.7 | 3.5.8
10+
| 2.7.1 | 2.7 | 2.7 | 3.5.8
1311
| 2.8.0 | 2.8 | 2.8 | 3.5.9
1412
|=================

kafka-agent/src/main/java/io/strimzi/kafka/agent/KafkaAgent.java

+1-22
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
*/
55
package io.strimzi.kafka.agent;
66

7-
import com.yammer.metrics.Metrics;
87
import com.yammer.metrics.core.Gauge;
98
import com.yammer.metrics.core.Metric;
109
import com.yammer.metrics.core.MetricName;
@@ -40,30 +39,10 @@ public KafkaAgent(File brokerReadyFile, File sessionConnectedFile) {
4039
this.sessionConnectedFile = sessionConnectedFile;
4140
}
4241

43-
/**
44-
* Since Kafka 2.6.0, a new class KafkaYammerMetrics exists which has the default Metrics Registry. The old default
45-
* registry does not work there anymore. So if the new class exists, we use it and if it doesn't exist we use the
46-
* old one. More details can be found here: https://github.com/apache/kafka/blob/2.6.0/core/src/main/java/kafka/metrics/KafkaYammerMetrics.java
47-
*
48-
* Once we support only 2.6.0 and newer, we can clean this up and use only KafkaYammerMetrics all the time.
49-
*
50-
* @return MetricsRegistry with Kafka metrics
51-
*/
52-
private MetricsRegistry metricsRegistry() {
53-
try {
54-
Class.forName("kafka.metrics.KafkaYammerMetrics");
55-
LOGGER.info("KafkaYammerMetrics found and will be used.");
56-
return KafkaYammerMetrics.defaultRegistry();
57-
} catch (ClassNotFoundException e) {
58-
LOGGER.info("KafkaYammerMetrics not found. Metrics will be used.");
59-
return Metrics.defaultRegistry();
60-
}
61-
}
62-
6342
private void run() {
6443
LOGGER.info("Starting metrics registry");
6544

66-
MetricsRegistry metricsRegistry = metricsRegistry();
45+
MetricsRegistry metricsRegistry = KafkaYammerMetrics.defaultRegistry();
6746

6847
metricsRegistry.addListener(new MetricsRegistryListener() {
6948
@Override

kafka-versions.yaml

+12-3
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
checksum: 022AB51605DFFB8A0E4522DF297F02F4C5E488696520BB38DA8E8E70457C0B2696A47D7AD39A86389B747981215B385B2659AC25B3D43A6093AF13239723560D
9292
zookeeper: 3.5.8
9393
third-party-libs: 2.6.x
94-
supported: true
94+
supported: false
9595
default: false
9696
- version: 2.6.1
9797
format: 2.6
@@ -100,7 +100,7 @@
100100
checksum: 105BF29E4BED9F1B7A7A3CAADF016DF8AA774F6F509E3606529F8231EA4CAB89C38236C58BE9C2E9BD3C52C2917892EA5D3A5EC0BD94BD8A5F7257522A5AF4DB
101101
zookeeper: 3.5.8
102102
third-party-libs: 2.6.x
103-
supported: true
103+
supported: false
104104
default: false
105105
- version: 2.6.2
106106
format: 2.6
@@ -109,7 +109,7 @@
109109
checksum: 70F992DFAB02D1E727E352124D53F89B096868E738DFC50563890EA394ADFE056B132BDC8BAD70BDD6CE48B0C7561CDB33CC50D56586F09BAD96FF699A054F85
110110
zookeeper: 3.5.9
111111
third-party-libs: 2.6.x
112-
supported: true
112+
supported: false
113113
default: false
114114
- version: 2.7.0
115115
format: 2.7
@@ -120,6 +120,15 @@
120120
third-party-libs: 2.7.x
121121
supported: true
122122
default: false
123+
- version: 2.7.1
124+
format: 2.7
125+
protocol: 2.7
126+
url: https://archive.apache.org/dist/kafka/2.7.1/kafka_2.12-2.7.1.tgz
127+
checksum: 33D365CC87ABC9B85AA51F0B0C26E3749A5E9821F611B3F73239AABC9D6CD2F1E55F01ED0647AF5818967AF35213FA1BEDFAB89C3F22B083015A75C318DDC5AB
128+
zookeeper: 3.5.8
129+
third-party-libs: 2.7.x
130+
supported: true
131+
default: false
123132
- version: 2.8.0
124133
format: 2.8
125134
protocol: 2.8

0 commit comments

Comments
 (0)