Skip to content

Commit 0d6c451

Browse files
authored
Merge pull request #880 from Shopify/kafka-2.7.0
kafka 2.7.0
2 parents 49c6194 + 9028ed7 commit 0d6c451

File tree

3 files changed

+46
-6
lines changed

3 files changed

+46
-6
lines changed

.circleci/config.yml

+34
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,39 @@ jobs:
342342
- run: bundle install --path vendor/bundle
343343
- run: bundle exec rspec --profile --tag functional spec/functional
344344

345+
kafka-2.7:
346+
docker:
347+
- image: circleci/ruby:2.5.1-node
348+
environment:
349+
LOG_LEVEL: DEBUG
350+
- image: wurstmeister/zookeeper
351+
- image: wurstmeister/kafka:2.13-2.7.0
352+
environment:
353+
KAFKA_ADVERTISED_HOST_NAME: localhost
354+
KAFKA_ADVERTISED_PORT: 9092
355+
KAFKA_PORT: 9092
356+
KAFKA_ZOOKEEPER_CONNECT: localhost:2181
357+
KAFKA_DELETE_TOPIC_ENABLE: true
358+
- image: wurstmeister/kafka:2.13-2.7.0
359+
environment:
360+
KAFKA_ADVERTISED_HOST_NAME: localhost
361+
KAFKA_ADVERTISED_PORT: 9093
362+
KAFKA_PORT: 9093
363+
KAFKA_ZOOKEEPER_CONNECT: localhost:2181
364+
KAFKA_DELETE_TOPIC_ENABLE: true
365+
- image: wurstmeister/kafka:2.13-2.7.0
366+
environment:
367+
KAFKA_ADVERTISED_HOST_NAME: localhost
368+
KAFKA_ADVERTISED_PORT: 9094
369+
KAFKA_PORT: 9094
370+
KAFKA_ZOOKEEPER_CONNECT: localhost:2181
371+
KAFKA_DELETE_TOPIC_ENABLE: true
372+
steps:
373+
- checkout
374+
- run: sudo apt-get update && sudo apt-get install -y cmake # For installing snappy
375+
- run: bundle install --path vendor/bundle
376+
- run: bundle exec rspec --profile --tag functional spec/functional
377+
345378
workflows:
346379
version: 2
347380
test:
@@ -357,3 +390,4 @@ workflows:
357390
- kafka-2.4
358391
- kafka-2.5
359392
- kafka-2.6
393+
- kafka-2.7

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,11 @@ Or install it yourself as:
134134
<td>Limited support</td>
135135
<td>Limited support</td>
136136
</tr>
137+
<tr>
138+
<th>Kafka 2.7</th>
139+
<td>Limited support</td>
140+
<td>Limited support</td>
141+
</tr>
137142
</table>
138143

139144
This library is targeting Kafka 0.9 with the v0.4.x series and Kafka 0.10 with the v0.5.x series. There's limited support for Kafka 0.8, and things should work with Kafka 0.11, although there may be performance issues due to changes in the protocol.
@@ -150,6 +155,7 @@ This library is targeting Kafka 0.9 with the v0.4.x series and Kafka 0.10 with t
150155
- **Kafka 2.4:** Everything that works with Kafka 2.3 should still work, but so far no features specific to Kafka 2.4 have been added.
151156
- **Kafka 2.5:** Everything that works with Kafka 2.4 should still work, but so far no features specific to Kafka 2.5 have been added.
152157
- **Kafka 2.6:** Everything that works with Kafka 2.5 should still work, but so far no features specific to Kafka 2.6 have been added.
158+
- **Kafka 2.7:** Everything that works with Kafka 2.6 should still work, but so far no features specific to Kafka 2.7 have been added.
153159

154160
This library requires Ruby 2.1 or higher.
155161

spec/functional/topic_management_spec.rb

+6-6
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,10 @@ def with_retry(opts = {}, &block)
7070

7171
topic = generate_topic_name
7272
kafka.create_topic(topic, num_partitions: 3)
73-
configs = kafka.describe_topic(topic, %w(retention.ms retention.bytes non_exists))
73+
configs = kafka.describe_topic(topic, %w(retention.ms))
7474

75-
expect(configs.keys).to eql(%w(retention.ms retention.bytes))
75+
expect(configs.keys).to eql(%w(retention.ms))
7676
expect(configs['retention.ms']).to be_a(String)
77-
expect(configs['retention.bytes']).to be_a(String)
7877
end
7978

8079
example "alter a topic configuration" do
@@ -90,8 +89,9 @@ def with_retry(opts = {}, &block)
9089
'max.message.bytes' => '987654'
9190
)
9291

93-
configs = kafka.describe_topic(topic, %w(retention.ms max.message.bytes))
94-
expect(configs['retention.ms']).to eql('1234567')
95-
expect(configs['max.message.bytes']).to eql('987654')
92+
retention_configs = kafka.describe_topic(topic, %w(retention.ms))
93+
expect(retention_configs['retention.ms']).to eql('1234567')
94+
max_msg_bytes_configs = kafka.describe_topic(topic, %w(max.message.bytes))
95+
expect(max_msg_bytes_configs['max.message.bytes']).to eql('987654')
9696
end
9797
end

0 commit comments

Comments
 (0)