codeclimate-poseidon 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/poseidon/sync_producer.rb +4 -2
- data/lib/poseidon/version.rb +1 -1
- metadata +19 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24d819569b92bc26b634a8914fe26cb06f20ffb7
|
4
|
+
data.tar.gz: 32f521faf32658fe3bef867e68680c566039e97b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2a37c2ac0b556382a0cdfa5db90c18a2e95b81f6d7a3e386b30fb8fa1bbd660d985daffced2072c0f913ac243df77824d2cdbbd5aeb90a1bde03e966d286c0e
|
7
|
+
data.tar.gz: d03477476c96df18826b9c9406ce7585242e5893673a7be35661a4ac82736c797d318e2579875f09fe3a17f692a04a346b3f5e9230ad22e81c736a1c865e02e4
|
@@ -57,6 +57,7 @@ module Poseidon
|
|
57
57
|
if !messages_to_send.pending_messages? || @max_send_retries == 0
|
58
58
|
break
|
59
59
|
else
|
60
|
+
Poseidon.logger.debug { "retrying sending #{messages_to_send.messages} messages" }
|
60
61
|
Kernel.sleep retry_backoff_ms / 1000.0
|
61
62
|
reset_metadata
|
62
63
|
ensure_metadata_available_for_topics(messages_to_send)
|
@@ -100,14 +101,14 @@ module Poseidon
|
|
100
101
|
@socket_timeout_ms = handle_option(options, :socket_timeout_ms)
|
101
102
|
@retry_backoff_ms = handle_option(options, :retry_backoff_ms)
|
102
103
|
|
103
|
-
@metadata_refresh_interval_ms =
|
104
|
+
@metadata_refresh_interval_ms =
|
104
105
|
handle_option(options, :metadata_refresh_interval_ms)
|
105
106
|
|
106
107
|
@required_acks = handle_option(options, :required_acks)
|
107
108
|
@max_send_retries = handle_option(options, :max_send_retries)
|
108
109
|
|
109
110
|
@compression_config = ProducerCompressionConfig.new(
|
110
|
-
handle_option(options, :compression_codec),
|
111
|
+
handle_option(options, :compression_codec),
|
111
112
|
handle_option(options, :compressed_topics))
|
112
113
|
|
113
114
|
@partitioner = handle_option(options, :partitioner)
|
@@ -155,6 +156,7 @@ module Poseidon
|
|
155
156
|
messages_for_broker.successfully_sent(response)
|
156
157
|
end
|
157
158
|
rescue Connection::ConnectionFailedError
|
159
|
+
Poseidon.logger.warn { "Failed to send messages to #{messages_for_broker.broker_id} due to connection failure" }
|
158
160
|
false
|
159
161
|
end
|
160
162
|
end
|
data/lib/poseidon/version.rb
CHANGED
metadata
CHANGED
@@ -1,83 +1,83 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codeclimate-poseidon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Potter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: yard
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: simplecov
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: snappy
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: timecop
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
description: A Kafka (http://kafka.apache.org/) producer and consumer
|
@@ -87,10 +87,10 @@ executables: []
|
|
87
87
|
extensions: []
|
88
88
|
extra_rdoc_files: []
|
89
89
|
files:
|
90
|
-
- .gitignore
|
91
|
-
- .rspec
|
92
|
-
- .travis.yml
|
93
|
-
- .yardopts
|
90
|
+
- ".gitignore"
|
91
|
+
- ".rspec"
|
92
|
+
- ".travis.yml"
|
93
|
+
- ".yardopts"
|
94
94
|
- CHANGES.md
|
95
95
|
- Gemfile
|
96
96
|
- LICENSE.txt
|
@@ -172,17 +172,17 @@ require_paths:
|
|
172
172
|
- lib
|
173
173
|
required_ruby_version: !ruby/object:Gem::Requirement
|
174
174
|
requirements:
|
175
|
-
- -
|
175
|
+
- - ">="
|
176
176
|
- !ruby/object:Gem::Version
|
177
177
|
version: 1.9.3
|
178
178
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
179
179
|
requirements:
|
180
|
-
- -
|
180
|
+
- - ">="
|
181
181
|
- !ruby/object:Gem::Version
|
182
182
|
version: '0'
|
183
183
|
requirements: []
|
184
184
|
rubyforge_project:
|
185
|
-
rubygems_version: 2.
|
185
|
+
rubygems_version: 2.5.1
|
186
186
|
signing_key:
|
187
187
|
specification_version: 4
|
188
188
|
summary: Poseidon is a producer and consumer implementation for Kafka >= 0.8
|
@@ -222,4 +222,3 @@ test_files:
|
|
222
222
|
- spec/unit/protocol_spec.rb
|
223
223
|
- spec/unit/sync_producer_spec.rb
|
224
224
|
- spec/unit/topic_metadata_spec.rb
|
225
|
-
has_rdoc:
|