ruby-kafka 0.6.7 → 0.6.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b98469b6eac7d203c2cbe308223d583e4542ee17bf31c2860699aaa4b1aec99e
4
- data.tar.gz: dec152e24d29ca247a5e406887171e2777ba155cfc54b07c03af660ee260ffd2
3
+ metadata.gz: 4b6ec4c0b038f80886220bb4bf822f159feb4fbaec4da32ff07a6bee61a29b8b
4
+ data.tar.gz: 9be9c44da236f5703615cf6e79cf8aa31c607712d643fecdfc85ebde55d9ea09
5
5
  SHA512:
6
- metadata.gz: 3654bbafa0f344c6c2e023980dda78202da13070011b37a8cd19db44b37c186abdd8af0b776f6dcfe3d5e2ffb65d324ab67dbf7c6b4bac7cc217d7e4a2544c62
7
- data.tar.gz: eaccc0654e6879a9540a17a33de9fb8d6a2bb4150b779b13512f0f85574c22570d0eaafce9ad6d616fd33222de441bf2e6df3d06bacf8fc571923b91dffcea86
6
+ metadata.gz: 39a98eca4842a975e07a1abde3f3956c3a142b35fbfeb3aa156d8191cfb6e990adbd2b373e9b4f8e361df6eb8e3ae4c2b9d4e7af593f9adc82b448a2fa89220b
7
+ data.tar.gz: 1c32a30793cf9a774070a4a124d9587de7c74167d4ada87a3942471b90e3090b16b19d62f803f245232d03fadc44784c893a79f8e7842cdcbf005c9c754fe3b2
@@ -470,7 +470,7 @@ module Kafka
470
470
 
471
471
  batches.each do |batch|
472
472
  batch.messages.each(&block)
473
- offsets[batch.partition] = batch.last_offset + 1
473
+ offsets[batch.partition] = batch.last_offset + 1 unless batch.empty?
474
474
  end
475
475
  end
476
476
  end
@@ -109,7 +109,7 @@ module Kafka
109
109
  }
110
110
  }
111
111
  }
112
- rescue Kafka::ConnectionError, Kafka::LeaderNotAvailable, Kafka::NotLeaderForPartition
112
+ rescue Kafka::ConnectionError, Kafka::LeaderNotAvailable, Kafka::NotLeaderForPartition, Kafka::UnknownTopicOrPartition
113
113
  @cluster.mark_as_stale!
114
114
 
115
115
  raise
@@ -138,9 +138,9 @@ module Kafka
138
138
  highwater_mark_offset: batch.highwater_mark_offset,
139
139
  message_count: batch.messages.count,
140
140
  })
141
- end
142
141
 
143
- @next_offsets[batch.topic][batch.partition] = batch.last_offset + 1
142
+ @next_offsets[batch.topic][batch.partition] = batch.last_offset + 1
143
+ end
144
144
  end
145
145
 
146
146
  @queue << [:batches, batches]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kafka
4
- VERSION = "0.6.7"
4
+ VERSION = "0.6.8"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-kafka
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.7
4
+ version: 0.6.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Schierbeck
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-06-12 00:00:00.000000000 Z
11
+ date: 2018-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler