fluent-plugin-kafka 0.8.1 → 0.8.2

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: 7dd4c51d1a923bc770c5c5a0a57778c573e0a042
4
- data.tar.gz: e55b05ba6214d79a4020ac505b535ca618d8355e
3
+ metadata.gz: abadce27fff22a0dcbe761409b60c6768a05cd5e
4
+ data.tar.gz: d3babee5ea772f2b25fb3d48517c744995df5592
5
5
  SHA512:
6
- metadata.gz: 9b659a098b6c7ec810434a6c0db350c01992d419c0809862eb705346cb1035b19adf6c73c45fff121ce764b38a84df6c29688cc090b9157f31264975b0c20f0b
7
- data.tar.gz: 2be308b6ab267b1cc0e73f38b728d6d6fd94c59c6c30069562e55dc72f3e0752762d14506e315d5d094d8b4dbbc719b1960b40c091609a5262aabcac9a527658
6
+ metadata.gz: 1a797ad51c38545515c1e2fed6d3c9f6007b0a68a0cf45e19c6b187b8f78d4d9663159a674f7523263030f9baea289291a6b11940591533c2f14c071a81103f8
7
+ data.tar.gz: 0b0944a0ffeff8c5d1c0277d0d7171562d076ce5079d32c7727b7431fd7d75695fd0e7fa2035c0ea2ee5a80282845c360cd3c842a0cfda286051e6b3825d1388
data/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ Release 0.8.2 - 2018/12/07
2
+
3
+ * output: Add idempotent parameter
4
+ * out_kafka2: Fix DeliveryFailed signature mismatch
5
+
1
6
  Release 0.8.1 - 2018/11/20
2
7
 
3
8
  * input: Support SASL without SSL
@@ -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.8.1'
16
+ gem.version = '0.8.2'
17
17
  gem.required_ruby_version = ">= 2.1.0"
18
18
 
19
19
  gem.add_dependency "fluentd", [">= 0.10.58", "< 2"]
@@ -235,13 +235,13 @@ module Kafka
235
235
  unless @pending_message_queue.empty?
236
236
  # Mark the cluster as stale in order to force a cluster metadata refresh.
237
237
  @cluster.mark_as_stale!
238
- raise DeliveryFailed, "Failed to assign partitions to #{@pending_message_queue.size} messages"
238
+ raise DeliveryFailed.new("Failed to assign partitions to #{@pending_message_queue.size} messages", buffer_messages)
239
239
  end
240
240
 
241
241
  unless @buffer.empty?
242
242
  partitions = @buffer.map {|topic, partition, _| "#{topic}/#{partition}" }.join(", ")
243
243
 
244
- raise DeliveryFailed, "Failed to send messages to #{partitions}"
244
+ raise DeliveryFailed.new("Failed to send messages to #{partitions}", buffer_messages)
245
245
  end
246
246
  end
247
247
 
@@ -25,6 +25,7 @@ DESC
25
25
  config_param :partition_key, :string, :default => 'partition', :desc => "Field for kafka partition"
26
26
  config_param :default_partition, :integer, :default => nil
27
27
  config_param :client_id, :string, :default => 'fluentd'
28
+ config_param :idempotent, :bool, :default => false, :desc => 'Enable idempotent producer'
28
29
  config_param :sasl_over_ssl, :bool, :default => true,
29
30
  :desc => <<-DESC
30
31
  Set to false to prevent SSL strict mode when using SASL authentication
@@ -133,7 +134,7 @@ DESC
133
134
  end
134
135
  end
135
136
 
136
- @producer_opts = {max_retries: @max_send_retries, required_acks: @required_acks}
137
+ @producer_opts = {max_retries: @max_send_retries, required_acks: @required_acks, idempotent: @idempotent}
137
138
  @producer_opts[:ack_timeout] = @ack_timeout if @ack_timeout
138
139
  @producer_opts[:compression_codec] = @compression_codec.to_sym if @compression_codec
139
140
  if @active_support_notification_regex
@@ -27,6 +27,7 @@ DESC
27
27
  config_param :partition_key, :string, :default => 'partition', :desc => "Field for kafka partition"
28
28
  config_param :default_partition, :integer, :default => nil
29
29
  config_param :client_id, :string, :default => 'kafka'
30
+ config_param :idempotent, :bool, :default => false, :desc => 'Enable idempotent producer'
30
31
  config_param :sasl_over_ssl, :bool, :default => true,
31
32
  :desc => <<-DESC
32
33
  Set to false to prevent SSL strict mode when using SASL authentication
@@ -177,7 +178,7 @@ DESC
177
178
 
178
179
  @formatter_proc = setup_formatter(conf)
179
180
 
180
- @producer_opts = {max_retries: @max_send_retries, required_acks: @required_acks}
181
+ @producer_opts = {max_retries: @max_send_retries, required_acks: @required_acks, idempotent: @idempotent}
181
182
  @producer_opts[:ack_timeout] = @ack_timeout if @ack_timeout
182
183
  @producer_opts[:compression_codec] = @compression_codec.to_sym if @compression_codec
183
184
 
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.8.1
4
+ version: 0.8.2
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-11-21 00:00:00.000000000 Z
12
+ date: 2018-12-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd