fluent-plugin-s3 1.3.1 → 1.3.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
  SHA256:
3
- metadata.gz: 8593f8ac82d2c9d12ee60cbf28512fe88521ada5940a2f6be6ad63fec2367843
4
- data.tar.gz: cb75cc99ad934d89cb681a3791a780a8f127b81fe0f9eefa8d2a68a223bb7487
3
+ metadata.gz: fbed7d556d0f9b4cda2531325a30beab6089f1c0355891ce806f80c19ea99dd6
4
+ data.tar.gz: bb76ae613efd56b49c3b55d9e4dd47402df460331b16df92d89197101307b46d
5
5
  SHA512:
6
- metadata.gz: f5817b1f6a0f0f01f4c3f062191a65d29892099b745f0c1fa6ce77287ed899ce96cf454c607cac5a5c3c9c6f1a20db5b9cf2c636bd3b081ccd7e53ed623fe6f8
7
- data.tar.gz: 0000725e7ac679b7cc88a0e754114f8f270cc60c64285d9ec960ff92bd6534d7aafc98b3bf45c9f4465c869b9f261e133245dc6b3423ae7b218e8c7203282e3b
6
+ metadata.gz: 24b5c6f162b1e093dfd56668812104d00f81a32c6970d95f6f2e15524148f3bdde1a155172554f0c8b711b7c82021620ebad14429c7a54521442667230890571
7
+ data.tar.gz: b80c299e39e34a331752eef996e0d4fe9420fd897b50f6936ae9049821311b9ff38aa8435b9dfd83730bc1cb6522b9b6640e3a31239e004db51777d5449cdfc9
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ Release 1.3.2 - 2020/05/18
2
+
3
+ * out_s3: Show warning message for object conflict case.
4
+
1
5
  Release 1.3.1 - 2020/04/15
2
6
 
3
7
  * out_s3: Support S3 Dual-Stack Endpoints in output plugin via enable_dual_stack parameter
data/README.md CHANGED
@@ -31,8 +31,13 @@ We must setup SQS queue and S3 event notification before use this plugin.
31
31
 
32
32
  Simply use RubyGems:
33
33
 
34
- $ gem install fluent-plugin-s3 -v "~> 0.8" --no-document # for fluentd v0.12 or later
35
- $ gem install fluent-plugin-s3 -v 1.0.0 --no-document # for fluentd v1.0 or later
34
+ # install latest version
35
+ $ gem install fluent-plugin-s3 --no-document # for fluentd v1.0 or later
36
+ # If you need to install specifiv version, use -v option
37
+ $ gem install fluent-plugin-s3 -v 1.3.0 --no-document
38
+ # For v0.12. This is for old v0.12 users. Don't use v0.12 for new deployment
39
+ $ gem install fluent-plugin-s3 -v "~> 0.8" --no-document # for fluentd v0.12
40
+
36
41
 
37
42
  ## Configuration: credentials
38
43
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.1
1
+ 1.3.2
@@ -209,6 +209,8 @@ module Fluent::Plugin
209
209
  end
210
210
  end
211
211
 
212
+ check_s3_path_safety(conf)
213
+
212
214
  # For backward compatibility
213
215
  # TODO: Remove time_slice_format when end of support compat_parameters
214
216
  @configured_time_slice_format = conf['time_slice_format']
@@ -451,6 +453,16 @@ module Fluent::Plugin
451
453
  }
452
454
  end
453
455
 
456
+ def check_s3_path_safety(conf)
457
+ unless conf.has_key?('s3_object_key_format')
458
+ log.warn "The default value of s3_object_key_format will use ${chunk_id} instead of %{index} to avoid object conflict in v2"
459
+ end
460
+
461
+ if (@buffer_config.flush_thread_count > 1) && ['${chunk_id}', '%{uuid_flush}'].none? { |key| @s3_object_key_format.include?(key) }
462
+ log.warn "No ${chunk_id} or %{uuid_flush} in s3_object_key_format with multiple flush threads. Recommend to set ${chunk_id} or %{uuid_flush} to avoid data lost by object conflict"
463
+ end
464
+ end
465
+
454
466
  def check_apikeys
455
467
  @bucket.objects(prefix: @path, :max_keys => 1).first
456
468
  rescue Aws::S3::Errors::NoSuchBucket
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sadayuki Furuhashi
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-04-15 00:00:00.000000000 Z
12
+ date: 2020-05-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd