From 0adc8d5a1516a7d20120cf8db99504d47e0c0783 Mon Sep 17 00:00:00 2001 From: Vlad Gorodetsky Date: Tue, 3 Dec 2019 16:29:46 +0200 Subject: [PATCH] Add support for kafka 2.4.0 --- .travis.yml | 1 - README.md | 2 +- dev.yml | 2 +- utils.go | 4 +++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index d60942369..cace313a7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ dist: xenial language: go go: -- 1.11.x - 1.12.x - 1.13.x diff --git a/README.md b/README.md index 0206faca6..18ad7bf19 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ You might also want to look at the [Frequently Asked Questions](https://github.c Sarama provides a "2 releases + 2 months" compatibility guarantee: we support the two latest stable releases of Kafka and Go, and we provide a two month grace period for older releases. This means we currently officially support -Go 1.11 through 1.13, and Kafka 2.1 through 2.3, although older releases are +Go 1.12 through 1.13, and Kafka 2.1 through 2.4, although older releases are still likely to work. Sarama follows semantic versioning and provides API stability via the gopkg.in service. diff --git a/dev.yml b/dev.yml index 481f68144..4c030deac 100644 --- a/dev.yml +++ b/dev.yml @@ -2,7 +2,7 @@ name: sarama up: - go: - version: '1.13.1' + version: '1.13.4' commands: test: diff --git a/utils.go b/utils.go index 7c815cd3a..9392793af 100644 --- a/utils.go +++ b/utils.go @@ -161,6 +161,7 @@ var ( V2_1_0_0 = newKafkaVersion(2, 1, 0, 0) V2_2_0_0 = newKafkaVersion(2, 2, 0, 0) V2_3_0_0 = newKafkaVersion(2, 3, 0, 0) + V2_4_0_0 = newKafkaVersion(2, 4, 0, 0) SupportedVersions = []KafkaVersion{ V0_8_2_0, @@ -185,9 +186,10 @@ var ( V2_1_0_0, V2_2_0_0, V2_3_0_0, + V2_4_0_0, } MinVersion = V0_8_2_0 - MaxVersion = V2_3_0_0 + MaxVersion = V2_4_0_0 ) //ParseKafkaVersion parses and returns kafka version or error from a string