fluent-plugin-kafka 0.7.7 → 0.7.8

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
  SHA1:
3
- metadata.gz: 44307aa17ae864f8e892b8c0eeb95066fe50c89c
4
- data.tar.gz: 13f83473d1835e7613ec989f21e017f99236c0e3
3
+ metadata.gz: 4f61c2911a847e8ca4b5058f0ca139d22a407513
4
+ data.tar.gz: 1aa5985ba8494b495a070893babd65455722c5ba
5
5
  SHA512:
6
- metadata.gz: f62828d69cc47006dfc5fba8ff31ecc6db33c867144c9a348ff952288aed48d3c5e8ebb7c3b625369cb694b3c0f5d98bb80df193e6545de4d8d6db6338c58539
7
- data.tar.gz: f2a2d16d81a2eeabbfe597d15cd2124e7a0f1b2e625f136d5b45fae7ff0ba94563ade1383dd9638c23be79ee8326bef9520ce135be56553f95010784fc9045ed
6
+ metadata.gz: a1e7dd4f62741db40e1687c51b93966434487e13c3fa94d94fce385a149f60c9cfb9af35450d5b6763da0dece5f81f1bf9bb90fb6eb1f3e2e91f058a278c0897
7
+ data.tar.gz: 9329a591d1f5ff19736a8bfe92f973dd2066749cffa75c4edf7326fc9c89f40b20b6af9f9cff523ee34e931bcfe87f3464800ee8355b2d87a30454e24f4b977c
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ Release 0.7.8 - 2018/08/29
2
+
3
+ * input: Fix regression of kafka initialization
4
+
1
5
  Release 0.7.7 - 2018/08/27
2
6
 
3
7
  * in_kafka_group: Add retry_limit and disable_retry_limit parameters
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
13
13
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
14
  gem.name = "fluent-plugin-kafka"
15
15
  gem.require_paths = ["lib"]
16
- gem.version = '0.7.7'
16
+ gem.version = '0.7.8'
17
17
  gem.required_ruby_version = ">= 2.1.0"
18
18
 
19
19
  gem.add_dependency "fluentd", [">= 0.10.58", "< 2"]
@@ -174,16 +174,16 @@ class Fluent::KafkaInput < Fluent::Input
174
174
  opt[:min_bytes] = @min_bytes if @min_bytes
175
175
 
176
176
  if @scram_mechanism != nil && @username != nil && @password != nil
177
- @kafka = Kafka.new(seed_brokers: @brokers, client_id: @client_id, logger: logger, ssl_ca_cert: read_ssl_file(@ssl_ca_cert),
177
+ @kafka = Kafka.new(seed_brokers: @brokers, client_id: @client_id, logger: log, ssl_ca_cert: read_ssl_file(@ssl_ca_cert),
178
178
  ssl_client_cert: read_ssl_file(@ssl_client_cert), ssl_client_cert_key: read_ssl_file(@ssl_client_cert_key),
179
179
  ssl_ca_certs_from_system: @ssl_ca_certs_from_system, sasl_scram_username: @username, sasl_scram_password: @password,
180
180
  sasl_scram_mechanism: @scram_mechanism)
181
181
  elsif @username != nil && @password != nil
182
- @kafka = Kafka.new(seed_brokers: @brokers, client_id: @client_id, logger: logger, ssl_ca_cert: read_ssl_file(@ssl_ca_cert),
182
+ @kafka = Kafka.new(seed_brokers: @brokers, client_id: @client_id, logger: log, ssl_ca_cert: read_ssl_file(@ssl_ca_cert),
183
183
  ssl_client_cert: read_ssl_file(@ssl_client_cert), ssl_client_cert_key: read_ssl_file(@ssl_client_cert_key),
184
184
  ssl_ca_certs_from_system: @ssl_ca_certs_from_system,sasl_plain_username: @username, sasl_plain_password: @password)
185
185
  else
186
- @kafka = Kafka.new(seed_brokers: @brokers, client_id: @client_id, logger: logger, ssl_ca_cert: read_ssl_file(@ssl_ca_cert),
186
+ @kafka = Kafka.new(seed_brokers: @brokers, client_id: @client_id, logger: log, ssl_ca_cert: read_ssl_file(@ssl_ca_cert),
187
187
  ssl_client_cert: read_ssl_file(@ssl_client_cert), ssl_client_cert_key: read_ssl_file(@ssl_client_cert_key),
188
188
  ssl_ca_certs_from_system: @ssl_ca_certs_from_system, sasl_gssapi_principal: @principal, sasl_gssapi_keytab: @keytab)
189
189
  end
@@ -147,16 +147,16 @@ class Fluent::KafkaGroupInput < Fluent::Input
147
147
  super
148
148
 
149
149
  if @scram_mechanism != nil && @username != nil && @password != nil
150
- @kafka = Kafka.new(seed_brokers: @brokers, client_id: @client_id, logger: logger, ssl_ca_cert: read_ssl_file(@ssl_ca_cert),
150
+ @kafka = Kafka.new(seed_brokers: @brokers, client_id: @client_id, logger: log, ssl_ca_cert: read_ssl_file(@ssl_ca_cert),
151
151
  ssl_client_cert: read_ssl_file(@ssl_client_cert), ssl_client_cert_key: read_ssl_file(@ssl_client_cert_key),
152
152
  ssl_ca_certs_from_system: @ssl_ca_certs_from_system, sasl_scram_username: @username, sasl_scram_password: @password,
153
153
  sasl_scram_mechanism: @scram_mechanism)
154
154
  elsif @username != nil && @password != nil
155
- @kafka = Kafka.new(seed_brokers: @brokers, client_id: @client_id, logger: logger, ssl_ca_cert: read_ssl_file(@ssl_ca_cert),
155
+ @kafka = Kafka.new(seed_brokers: @brokers, client_id: @client_id, logger: log, ssl_ca_cert: read_ssl_file(@ssl_ca_cert),
156
156
  ssl_client_cert: read_ssl_file(@ssl_client_cert), ssl_client_cert_key: read_ssl_file(@ssl_client_cert_key),
157
157
  ssl_ca_certs_from_system: @ssl_ca_certs_from_system, sasl_plain_username: @username, sasl_plain_password: @password)
158
158
  else
159
- @kafka = Kafka.new(seed_brokers: @brokers, client_id: @client_id, logger: logger, ssl_ca_cert: read_ssl_file(@ssl_ca_cert),
159
+ @kafka = Kafka.new(seed_brokers: @brokers, client_id: @client_id, logger: log, ssl_ca_cert: read_ssl_file(@ssl_ca_cert),
160
160
  ssl_client_cert: read_ssl_file(@ssl_client_cert), ssl_client_cert_key: read_ssl_file(@ssl_client_cert_key),
161
161
  ssl_ca_certs_from_system: @ssl_ca_certs_from_system, sasl_gssapi_principal: @principal, sasl_gssapi_keytab: @keytab)
162
162
  end
@@ -190,7 +190,7 @@ class Fluent::KafkaGroupInput < Fluent::Input
190
190
  log.warn "Stopping Consumer"
191
191
  consumer = @consumer
192
192
  @consumer = nil
193
- if consumer
193
+ if consumer
194
194
  consumer.stop
195
195
  end
196
196
  log.warn "Could not connect to broker. retry_time:#{@retry_count}. Next retry will be in #{@retry_wait_seconds} seconds"
@@ -198,7 +198,7 @@ class Fluent::KafkaGroupInput < Fluent::Input
198
198
  sleep @retry_wait_seconds
199
199
  @consumer = setup_consumer
200
200
  log.warn "Re-starting consumer #{Time.now.to_s}"
201
- @retry_count = 0
201
+ @retry_count = 0
202
202
  rescue =>e
203
203
  log.error "unexpected error during re-starting consumer object access", :error => e.to_s
204
204
  log.error_backtrace
@@ -276,4 +276,3 @@ class Fluent::KafkaGroupInput < Fluent::Input
276
276
  end
277
277
  end
278
278
  end
279
-
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-kafka
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.7
4
+ version: 0.7.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hidemasa Togashi
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-08-27 00:00:00.000000000 Z
12
+ date: 2018-08-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd