ruby-kafka 0.3.15.beta1 → 0.3.15.beta2

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
  SHA1:
3
- metadata.gz: f737e31dc809145f5ea7d5d66d761df383103215
4
- data.tar.gz: 82e1bb74dd93e01963c8ccff60ea4e26a27d24f3
3
+ metadata.gz: 26c3ed03ad7cdfe31424d9b0f1bd169794631b75
4
+ data.tar.gz: 0619bf2d30a8f1f48c779911ba3a7b5c0f212b96
5
5
  SHA512:
6
- metadata.gz: 5cca8d29dd690134e46833d3cd01e961c4c782c540f88472619edc4e9e9af6e273c5dbafbc5fd5df31856fce3f2550f2c0e3f1924372a86aa67cfbdb87120e7f
7
- data.tar.gz: 269d7ff9dfbc342a8b942249889c55d8ddb9ca4a06e18003727537fd00dcda09a42e714626fa4045554de76c0a52fdafb3694b702c39446753016a1fa0cfba85
6
+ metadata.gz: 3c5ff90a634a46859975c4c498350a208f8bfb485c25a6305c0b69a0e6094c3e8d2ef5746bc0968a401df0dc1a36a0ffda45c44fcc1cdf0c3d2ba4834c037ffd
7
+ data.tar.gz: 9a0ef026324fb0152776e90a6ce40606f4752a1369744f51ae21e19cb89f6de1ae0bdb933660feda3ca95fb77031862c1d343bfdc319c62780e987a45bda6712
@@ -146,6 +146,9 @@ module Kafka
146
146
  # @param max_wait_time [Integer] the maximum duration of time to wait before
147
147
  # returning messages from the server, in seconds.
148
148
  # @yieldparam message [Kafka::FetchedMessage] a message fetched from Kafka.
149
+ # @raise [Kafka::ProcessingError] if there was an error processing a message.
150
+ # The original exception will be returned by calling `#cause` on the
151
+ # {Kafka::ProcessingError} instance.
149
152
  # @return [nil]
150
153
  def each_message(min_bytes: 1, max_wait_time: 5)
151
154
  consumer_loop do
@@ -267,8 +270,8 @@ module Kafka
267
270
  ensure
268
271
  # In order to quickly have the consumer group re-balance itself, it's
269
272
  # important that members explicitly tell Kafka when they're leaving.
270
- @offset_manager.commit_offsets
271
- @group.leave
273
+ @offset_manager.commit_offsets rescue nil
274
+ @group.leave rescue nil
272
275
  @running = false
273
276
  end
274
277
 
@@ -1,3 +1,3 @@
1
1
  module Kafka
2
- VERSION = "0.3.15.beta1"
2
+ VERSION = "0.3.15.beta2"
3
3
  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.3.15.beta1
4
+ version: 0.3.15.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Schierbeck
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-22 00:00:00.000000000 Z
11
+ date: 2016-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler