fluent-plugin-azurestorage-gen2 0.2.5 → 0.2.6

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: 02170d63c314b7bb91fb1722b0ca1a4dccad9bd0
4
- data.tar.gz: 7fc221dc0be643681800be67c954634caa7df518
3
+ metadata.gz: eb267ae2150f12ef390003715ba3bad30295ae0c
4
+ data.tar.gz: f325ec26935b593e6449b91f31170da9526ef340
5
5
  SHA512:
6
- metadata.gz: ad9f64e7f2af1d65177e683aa808df6187d9ace11a0f976a925a11d31e74db15c324b10035d4610ff387b5f2b3a1939c4f8c2cf5f7f25e4a237c16350b4ec620
7
- data.tar.gz: eeff3b1a4c7ea0b48e207c270e1679ba770c2bca21146f879bfb893a1fca314419c5a7a6c35a1437ca4967dbd87a0d703c81b66a16d1326e187da90e2fcf1ac1
6
+ metadata.gz: 2e373e18b4351201fbffb83aec2086c8f2173e4f93b1c4e0042334d9f2697da74c0f8893aa0194bac4c1dc4a5eb1726a90123fcc9f7a2e8b136d4cd2a89fa05a
7
+ data.tar.gz: 5386fa13b28894925065c9270bbed6fb1fc57b2b9486e6363c9587fa04a72ca0cdf996e9639690bd6e976301be73dda334d1a1cf72e7c8180055e46cd89f93b2
data/README.md CHANGED
@@ -124,6 +124,10 @@ This plugin create container if not exist when you set 'auto_create_container' t
124
124
 
125
125
  You can skip the initial container listing (and container creation) operations at startup. That can be useful if the user is not allowed to perform this operation.
126
126
 
127
+ ### failsafe_container_check
128
+
129
+ On startup, a list operation is called against a container, if that does not exists, the app tries to create it if `auto_create_container` is enabled. If that option is enabled, the application won't fail if any of these operations are failed. (Can be useful the right roles are not set on your container, but set for blobs)
130
+
127
131
  ### enable_retry
128
132
 
129
133
  If you set this option, operations can be retried in the buffer. Default value is false. (Used for create/update/flush Blob operations)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.5
1
+ 0.2.6
@@ -34,6 +34,7 @@ module Fluent::Plugin
34
34
  config_param :store_as, :string, :default => "none"
35
35
  config_param :auto_create_container, :bool, :default => false
36
36
  config_param :skip_container_check, :bool, :default => false
37
+ config_param :failsafe_container_check, :bool, :default => false
37
38
  config_param :enable_retry, :bool, :default => false
38
39
  config_param :startup_fail_on_error, :bool, :default => true
39
40
  config_param :url_domain_suffix, :string, :default => '.dfs.core.windows.net'
@@ -106,7 +107,15 @@ module Fluent::Plugin
106
107
  def start
107
108
  setup_access_token
108
109
  if !@skip_container_check
109
- ensure_container
110
+ if @failsafe_container_check
111
+ begin
112
+ ensure_container
113
+ rescue Exception => e
114
+ log.warn("#{e.message}, container list/create failsafe is enabled. Continue without those operations.")
115
+ end
116
+ else
117
+ ensure_container
118
+ end
110
119
  end
111
120
  super
112
121
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-azurestorage-gen2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oliver Szabo