fluent-plugin-kafka 0.9.1 → 0.9.2

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: 7e0fc15b5eb42956e24bc2ba3c28d68a0e871cd8
4
- data.tar.gz: b4b6c74aaf766a9df5f070f92d51a18f91da3b83
3
+ metadata.gz: 19ca96347c691e54c3e17b448f35cd854ce47631
4
+ data.tar.gz: 71ffa3bf2f49fbc7b8e6524a35a42753d1fbb916
5
5
  SHA512:
6
- metadata.gz: 40117591351866c8bdd669574d507ca663cc5a99acd206d6efb1c881c245e1fa5f13e61c3498fb73e987ef1d7eb71fa3654b846d9d3cb6af7b08b36e9befb3dc
7
- data.tar.gz: 3fd29b50927e56cec350d2e3a694903c6f1243c1bd8f32e8cae66b56c92b55a8237df89a078ed1a8838bb346377d3200f296127efe299ea7ae4e5407c8e28f67
6
+ metadata.gz: b81ecd0cd9d0a8373df4de46165342b36caf67e214df542b6e790bc1363a9bd3f01662710c2076f027c618aacd2552fc1468716bf50f1e677f8e383d07b9e595
7
+ data.tar.gz: dc60575fc8913313c68774b9148eeb7e6eab1bd6f2ac47570f068333ce597ad058f558c4e3540b4f27022c098ec824bb8c0cb8825b48592ac4d7a2c090363479
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ Release 0.9.2 - 2019/03/26
2
+
3
+ * out_kafka_buffered: Fix typo of partition_key usage
4
+
1
5
  Release 0.9.1 - 2019/03/25
2
6
 
3
7
  * output: Support sasl_over_ssl parameter
data/README.md CHANGED
@@ -219,16 +219,16 @@ On CentOS 7 installation is also necessary.
219
219
  #### Load balancing
220
220
 
221
221
  Messages will be assigned a partition at random as default by ruby-kafka, but messages with the same partition key will always be assigned to the same partition by setting `default_partition_key` in config file.
222
- If key name `partition_key` exists in a message, this plugin set its value of partition_key as key.
222
+ If key name `partition_key_key` exists in a message, this plugin set the value of partition_key_key as key.
223
223
 
224
- |default_partition_key|partition_key| behavior |
224
+ |default_partition_key|partition_key_key| behavior |
225
225
  | --- | --- | --- |
226
226
  |Not set|Not exists| All messages are assigned a partition at random |
227
227
  |Set| Not exists| All messages are assigned to the specific partition |
228
- |Not set| Exists | Messages which have partition_key record are assigned to the specific partition, others are assigned a partition at random |
229
- |Set| Exists | Messages which have partition_key record are assigned to the specific partition with parition_key, others are assigned to the specific partition with default_parition_key |
228
+ |Not set| Exists | Messages which have partition_key_key record are assigned to the specific partition, others are assigned a partition at random |
229
+ |Set| Exists | Messages which have partition_key_key record are assigned to the specific partition with partition_key_key, others are assigned to the specific partition with default_parition_key |
230
230
 
231
- If key name `message_key` exists in a message, this plugin publishes the value of message_key to kafka and can be read by consumers. Same message key will be assigned to all messages by setting `default_message_key` in config file. If message_key exists and if partition_key is not set explicitly, messsage_key will be used for partitioning.
231
+ If key name `message_key_key` exists in a message, this plugin publishes the value of message_key_key to kafka and can be read by consumers. Same message key will be assigned to all messages by setting `default_message_key` in config file. If message_key_key exists and if partition_key_key is not set explicitly, messsage_key_key will be used for partitioning.
232
232
 
233
233
  ### Output plugin
234
234
 
@@ -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.9.1'
16
+ gem.version = '0.9.2'
17
17
  gem.required_ruby_version = ">= 2.1.0"
18
18
 
19
19
  gem.add_dependency "fluentd", [">= 0.10.58", "< 2"]
@@ -313,7 +313,7 @@ DESC
313
313
  record['tag'] = tag if @output_include_tag
314
314
  topic = (@exclude_topic_key ? record.delete(@topic_key) : record[@topic_key]) || def_topic
315
315
  partition_key = (@exclude_partition_key ? record.delete(@partition_key_key) : record[@partition_key_key]) || @default_partition_key
316
- partition = (@exclude_partition ? record.delete(@partition) : record[@partition]) || @default_partition
316
+ partition = (@exclude_partition ? record.delete(@partition_key) : record[@partition_key]) || @default_partition
317
317
  message_key = (@exclude_message_key ? record.delete(@message_key_key) : record[@message_key_key]) || @default_message_key
318
318
 
319
319
  records_by_topic[topic] ||= 0
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.9.1
4
+ version: 0.9.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: 2019-03-24 00:00:00.000000000 Z
12
+ date: 2019-03-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd