fluent-plugin-s3 1.1.7 → 1.1.8

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: cce40365e053256475e60bf82f122c1ed0ccff27
4
- data.tar.gz: e39318c0a195293034c053a457f455ab93feda5d
3
+ metadata.gz: 706ac1da3860e8310ea63b3a0acdb3d819f327ed
4
+ data.tar.gz: a5dc2d7ed59f8af1f1ecbba02cbb6b8b49b9f256
5
5
  SHA512:
6
- metadata.gz: e112e247a473d37fbaaebef78f43a0aa1c81b1b29d667be08a8bf81e876ca5effb8b0cc6d8768019a3163eb463f059d6dbab8cf3fc414cece916666602893b73
7
- data.tar.gz: 609f60be06d0ecfc986cef522078da31d78494d9a1ebb036b0442961159f31dc4ba711008547bd374c41924312d68ffb303f258e0c160b0c382a968497ae8b11
6
+ metadata.gz: de3ef963574a32ea2ccb517e7ea6e6a8e17b8489e2b8809f8ba3a243d695f4d0e14a5e91d238b93fa703c892a487bf0f9a172870ac249cef438b98e5edd707e9
7
+ data.tar.gz: c2e79fb312a87fddda7c5d8dfef25448c59d3923a89f03c904e93891aa203a13c3f174ba087d3da8edc69b5146cc0ee137b6fd9a1a7b727e68dbe0710a24cde0
data/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ Release 1.1.8 - 2019/01/28
2
+
3
+ * in_s3: Restart SQS polling when the error happens
4
+ * out_s3: Show root cause when error happens during compressor loading
5
+
1
6
  Release 1.1.7 - 2018/11/14
2
7
 
3
8
  * in_s3: Fix the bug proxy_uri parameter setting
data/README.md CHANGED
@@ -282,11 +282,9 @@ to decide keys dynamically.
282
282
  * %{path} is exactly the value of **path** configured in the configuration file.
283
283
  E.g., "logs/" in the example configuration above.
284
284
  * %{time_slice} is the
285
- time-slice in text that are formatted with **time_slice_format**. %{index} is
286
- the sequential number starts from 0, increments when multiple files are
287
- uploaded to S3 in the same time slice.
288
- * %{file_extention} is always "gz" for
289
- now.
285
+ time-slice in text that are formatted with **time_slice_format**.
286
+ * %{index} is the sequential number starts from 0, increments when multiple files are uploaded to S3 in the same time slice.
287
+ * %{file_extension} depends on **store_as** parameter.
290
288
  * %{uuid_flush} a uuid that is replaced everytime the buffer will be flushed. If you want to use this placeholder, install `uuidtools` gem first.
291
289
  * %{hostname} is replaced with `Socket.gethostname` result.
292
290
  * %{hex_random} a random hex string that is replaced for each buffer chunk, not
@@ -652,6 +650,10 @@ When true, messages are not deleted after polling block. Default is false.
652
650
 
653
651
  The long polling interval. Default is 20.
654
652
 
653
+ **sqs/retry_error_interval**
654
+
655
+ Interval to retry polling SQS if polling unsuccessful, in seconds. Default is 300.
656
+
655
657
  ## IAM Policy
656
658
 
657
659
  The following is an example for a minimal IAM policy needed to write to an s3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.7
1
+ 1.1.8
@@ -86,6 +86,8 @@ module Fluent::Plugin
86
86
  config_param :skip_delete, :bool, default: false
87
87
  desc "The long polling interval."
88
88
  config_param :wait_time_seconds, :integer, default: 20
89
+ desc "Polling error retry interval."
90
+ config_param :retry_error_interval, :integer, default: 300
89
91
  end
90
92
 
91
93
  desc "Tag string"
@@ -159,18 +161,24 @@ module Fluent::Plugin
159
161
  @poller.before_request do |stats|
160
162
  throw :stop_polling unless @running
161
163
  end
162
- @poller.poll(options) do |message|
163
- begin
164
- body = Yajl.load(message.body)
165
- log.debug(body)
166
- next unless body["Records"] # skip test queue
167
-
168
- process(body)
169
- rescue => e
170
- log.warn(error: e)
171
- log.warn_backtrace(e.backtrace)
172
- throw :skip_delete
164
+ begin
165
+ @poller.poll(options) do |message|
166
+ begin
167
+ body = Yajl.load(message.body)
168
+ log.debug(body)
169
+ next unless body["Records"] # skip test queue
170
+
171
+ process(body)
172
+ rescue => e
173
+ log.warn(error: e)
174
+ log.warn_backtrace(e.backtrace)
175
+ throw :skip_delete
176
+ end
173
177
  end
178
+ rescue => e
179
+ log.warn("SQS Polling Failed. Retry in #{@sqs.retry_error_interval} seconds")
180
+ sleep(@sqs.retry_error_interval)
181
+ retry
174
182
  end
175
183
  end
176
184
 
@@ -152,8 +152,8 @@ module Fluent::Plugin
152
152
  begin
153
153
  buffer_type = @buffer_config[:@type]
154
154
  @compressor = COMPRESSOR_REGISTRY.lookup(@store_as).new(buffer_type: buffer_type, log: log)
155
- rescue
156
- log.warn "#{@store_as} not found. Use 'text' instead"
155
+ rescue => e
156
+ log.warn "'#{@store_as}' not supported. Use 'text' instead: error = #{e.message}"
157
157
  @compressor = TextCompressor.new
158
158
  end
159
159
  @compressor.configure(conf)
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.1.7
4
+ version: 1.1.8
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: 2018-11-15 00:00:00.000000000 Z
12
+ date: 2019-01-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd