ruby-kafka 0.7.1.possible.pre.fetch.pre.fix → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 15856fc831de82f3aeacd6ad834deb9a4ecd557f44ee3569601e4c587a5d2926
4
- data.tar.gz: 7a715d38c914fa465166377ce780523db8484c4c9f72b13d4127be435e50fa7d
3
+ metadata.gz: 07f5c2801a1dda787213437b1b27aba5bd23b25e53c64687b5910ee0e1ccc221
4
+ data.tar.gz: 4f277fc15146a78d2374da0dff2e8201bf521012a07b160fc8f0630164656509
5
5
  SHA512:
6
- metadata.gz: adc8350cf6c9dc5ee7390e5df7baecaaf62b607295592e68ca0440d86c0032d07bb9e36031b691784f967bd16191dbd366b8f008b58aadd3c8e2d4604950b330
7
- data.tar.gz: fb86ae6fcb3bf1d729919c6f172d033f00fce855e349360fb95d934b13e9e0acf0d5cdc58813c57d80b5467f89c3d744f93fb87ab8c49d5e27ec11bee074ff87
6
+ metadata.gz: 58eb8f78f5d2cea9793416ab9e01d74f8c7737e7d7a5174a13a58278fa6b5849a2ee3b88155c97f37915664d0c9f393738ae7b8e06c2b78d48543188514a9cf8
7
+ data.tar.gz: 714ce12cca6bc8dd34c20835cdbc89257cb0f5a1cb020d1312e66adfc3d0ec91e1cec3207af0d708cdc936afb803d13576b2fe565d73495e45fd7cc89fc90f1f
data/CHANGELOG.md CHANGED
@@ -4,10 +4,11 @@ Changes and additions to the library will be listed here.
4
4
 
5
5
  ## Unreleased
6
6
 
7
- - Fix consuming duplication due to redundant messages returned from Kafka (#636).
8
-
9
7
  ## 0.7.1
10
8
 
9
+ - Compatibility with dogstatsd-ruby v4.0.0.
10
+ - Fix consuming duplication due to redundant messages returned from Kafka (#636).
11
+ - Fresh cluster info on fetch error (#641).
11
12
  - Exactly Once Delivery and Transactional Messaging Support (#608).
12
13
  - Support extra client certificates in the SSL Context when authenticating with Kafka (#633).
13
14
 
data/lib/kafka/datadog.rb CHANGED
@@ -40,7 +40,7 @@ module Kafka
40
40
  end
41
41
 
42
42
  def host
43
- @host ||= ::Datadog::Statsd::DEFAULT_HOST
43
+ @host ||= default_host
44
44
  end
45
45
 
46
46
  def host=(host)
@@ -49,7 +49,7 @@ module Kafka
49
49
  end
50
50
 
51
51
  def port
52
- @port ||= ::Datadog::Statsd::DEFAULT_PORT
52
+ @port ||= default_port
53
53
  end
54
54
 
55
55
  def port=(port)
@@ -77,6 +77,14 @@ module Kafka
77
77
 
78
78
  private
79
79
 
80
+ def default_host
81
+ ::Datadog::Statsd.const_defined?(:Connection) ? ::Datadog::Statsd::Connection::DEFAULT_HOST : ::Datadog::Statsd::DEFAULT_HOST
82
+ end
83
+
84
+ def default_port
85
+ ::Datadog::Statsd.const_defined?(:Connection) ? ::Datadog::Statsd::Connection::DEFAULT_PORT : ::Datadog::Statsd::DEFAULT_PORT
86
+ end
87
+
80
88
  def clear
81
89
  @statsd && @statsd.close
82
90
  @statsd = nil
data/lib/kafka/fetcher.rb CHANGED
@@ -185,7 +185,7 @@ module Kafka
185
185
  @cluster.refresh_metadata!
186
186
 
187
187
  # Don't overwhelm the brokers in case this keeps happening.
188
- sleep 1
188
+ sleep 10
189
189
 
190
190
  retry
191
191
  rescue NoPartitionsToFetchFrom
data/lib/kafka/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kafka
4
- VERSION = "0.7.1.possible-fetch-fix"
4
+ VERSION = "0.7.1"
5
5
  end
data/ruby-kafka.gemspec CHANGED
@@ -41,7 +41,7 @@ Gem::Specification.new do |spec|
41
41
  spec.add_development_dependency "extlz4"
42
42
  spec.add_development_dependency "colored"
43
43
  spec.add_development_dependency "rspec_junit_formatter", "0.2.2"
44
- spec.add_development_dependency "dogstatsd-ruby", ">= 3.0.0", "<4.0.0"
44
+ spec.add_development_dependency "dogstatsd-ruby", ">= 3.0.0", "< 5.0.0"
45
45
  spec.add_development_dependency "statsd-ruby"
46
46
  spec.add_development_dependency "ruby-prof"
47
47
  spec.add_development_dependency "timecop"
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.7.1.possible.pre.fetch.pre.fix
4
+ version: 0.7.1
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-09-11 00:00:00.000000000 Z
11
+ date: 2018-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: digest-crc
@@ -201,7 +201,7 @@ dependencies:
201
201
  version: 3.0.0
202
202
  - - "<"
203
203
  - !ruby/object:Gem::Version
204
- version: 4.0.0
204
+ version: 5.0.0
205
205
  type: :development
206
206
  prerelease: false
207
207
  version_requirements: !ruby/object:Gem::Requirement
@@ -211,7 +211,7 @@ dependencies:
211
211
  version: 3.0.0
212
212
  - - "<"
213
213
  - !ruby/object:Gem::Version
214
- version: 4.0.0
214
+ version: 5.0.0
215
215
  - !ruby/object:Gem::Dependency
216
216
  name: statsd-ruby
217
217
  requirement: !ruby/object:Gem::Requirement
@@ -446,9 +446,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
446
446
  version: 2.1.0
447
447
  required_rubygems_version: !ruby/object:Gem::Requirement
448
448
  requirements:
449
- - - ">"
449
+ - - ">="
450
450
  - !ruby/object:Gem::Version
451
- version: 1.3.1
451
+ version: '0'
452
452
  requirements: []
453
453
  rubyforge_project:
454
454
  rubygems_version: 2.7.6