Skip to content

Commit

Permalink
Merge pull request #1552 from Shopify/kafka240
Browse files Browse the repository at this point in the history
Add support for kafka 2.4.0
  • Loading branch information
bai authored Dec 3, 2019
2 parents 49a5636 + 0adc8d5 commit c82acaf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
dist: xenial
language: go
go:
- 1.11.x
- 1.12.x
- 1.13.x

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: sarama

up:
- go:
version: '1.13.1'
version: '1.13.4'

commands:
test:
Expand Down
4 changes: 3 additions & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand Down

0 comments on commit c82acaf

Please sign in to comment.