From fffd68343cc43e2adb5a5165365eceb7be9727c5 Mon Sep 17 00:00:00 2001 From: Vlad Gorodetsky Date: Sun, 1 Apr 2018 20:47:04 +0300 Subject: [PATCH 1/2] Add support for Kafka 1.1.0 --- .travis.yml | 2 +- README.md | 2 +- utils.go | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4c137d634..d60eef784 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,8 +12,8 @@ env: - KAFKA_HOSTNAME=localhost - DEBUG=true matrix: - - KAFKA_VERSION=0.11.0.2 - KAFKA_VERSION=1.0.0 + - KAFKA_VERSION=1.1.0 before_install: - export REPOSITORY_ROOT=${TRAVIS_BUILD_DIR} diff --git a/README.md b/README.md index 68eb74eb0..027a671ba 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,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.8 through 1.10, and Kafka 0.11 through 1.0, although older releases are +Go 1.8 through 1.10, and Kafka 1.0 through 1.1, although older releases are still likely to work. Sarama follows semantic versioning and provides API stability via the gopkg.in service. diff --git a/utils.go b/utils.go index 1d2b88684..702e22627 100644 --- a/utils.go +++ b/utils.go @@ -154,6 +154,7 @@ var ( V0_11_0_1 = newKafkaVersion(0, 11, 0, 1) V0_11_0_2 = newKafkaVersion(0, 11, 0, 2) V1_0_0_0 = newKafkaVersion(1, 0, 0, 0) + V1_1_0_0 = newKafkaVersion(1, 1, 0, 0) SupportedVersions = []KafkaVersion{ V0_8_2_0, @@ -171,9 +172,10 @@ var ( V0_11_0_1, V0_11_0_2, V1_0_0_0, + V1_1_0_0, } MinVersion = V0_8_2_0 - MaxVersion = V1_0_0_0 + MaxVersion = V1_1_0_0 ) func ParseKafkaVersion(s string) (KafkaVersion, error) { From 5a0b61f03d527b5f3fc6b8774bda9b40a01255da Mon Sep 17 00:00:00 2001 From: Vlad Gorodetsky Date: Mon, 2 Apr 2018 16:26:38 +0300 Subject: [PATCH 2/2] Test against kafka 0.11.0.2 --- .travis.yml | 1 + README.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d60eef784..ea295ec5f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,7 @@ env: - KAFKA_HOSTNAME=localhost - DEBUG=true matrix: + - KAFKA_VERSION=0.11.0.2 - KAFKA_VERSION=1.0.0 - KAFKA_VERSION=1.1.0 diff --git a/README.md b/README.md index 027a671ba..4fc0cc600 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,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.8 through 1.10, and Kafka 1.0 through 1.1, although older releases are +Go 1.8 through 1.10, and Kafka 0.11 through 1.1, although older releases are still likely to work. Sarama follows semantic versioning and provides API stability via the gopkg.in service.