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 +4 -4
- data/README.md +4 -0
- data/VERSION +1 -1
- data/lib/fluent/plugin/out_azurestorage_gen2.rb +10 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb267ae2150f12ef390003715ba3bad30295ae0c
|
4
|
+
data.tar.gz: f325ec26935b593e6449b91f31170da9526ef340
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
-
|
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
|