test-opensearch 0.0.0.3 → 0.0.0.5

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
  SHA256:
3
- metadata.gz: 4e56816c3f750e8e813fbcf64e6589ca799a2b94f2b00a07ef0ae8395a4da14b
4
- data.tar.gz: 0340bdd6b8a12e2ed032437484656f61b37c5cca2355bc01cadd408225619b90
3
+ metadata.gz: e35e4b050c9eeb0c007bfddd52d73c6c48d142cb784102543335dbcd3ac43e31
4
+ data.tar.gz: fe5ee8dd1718844d57c71ce4d1bd69c989b7cd40a9d8f37e56256ea3ab2f4229
5
5
  SHA512:
6
- metadata.gz: b5cabd951822174fa8cf36902279bcf41db4a3a839b783ccdc072f4dfb6816c40d502261053343d71df9e5a1d26e3d330adfcbae839bbaa9b3974f576f226d11
7
- data.tar.gz: 58305a974872fd798841bd9df1dccf0099c50282e6bab96d8dcd3155e0ad05c0796c7e856bec379d643c6dad03caf2a0057577a3981734f4bc0b2c3100df0bac
6
+ metadata.gz: 827406083fc31b99cfa335599a34db0b67a203006e1386bce68c885f0f29ae6b115c84489df3ea77e5fa4996595cb2245f4102ecf5a408d82f2cecf93fa5c47e
7
+ data.tar.gz: 5f66320ab667448674db66c39fc08468860dba818063b5dc9c12b247135a3d41cd147fa270870d71ba581a0eaf77185882fba2be6367c112833b529b8735e4b1
@@ -3,7 +3,7 @@ $:.push File.expand_path('../lib', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'test-opensearch'
6
- s.version = '0.0.0.3'
6
+ s.version = '0.0.0.5'
7
7
  s.authors = ['Oleh']
8
8
  s.email = ['imcotop@icloud.com']
9
9
  s.description = %q{test}
@@ -85,7 +85,7 @@ module Fluent::Plugin
85
85
  config_param :retry_forever, :bool, default: true, desc: 'If true, plugin will ignore retry_timeout and retry_max_times options and retry forever.'
86
86
  config_param :retry_timeout, :time, default: 72 * 60 * 60, desc: 'The maximum seconds to retry to flush while failing, until plugin discards buffer chunks.'
87
87
  # 72hours == 17 times with exponential backoff (not to change default behavior)
88
- config_param :retry_max_times, :integer, default: nil, desc: 'The maximum number of times to retry to flush while failing.'
88
+ config_param :retry_max_times, :integer, default: 5, desc: 'The maximum number of times to retry to flush while failing.'
89
89
  config_param :retry_secondary_threshold, :float, default: 0.8, desc: 'ratio of retry_timeout to switch to use secondary while failing.'
90
90
  # exponential backoff sequence will be initialized at the time of this threshold
91
91
  config_param :retry_type, :enum, list: [:exponential_backoff, :periodic], default: :periodic
@@ -95,7 +95,7 @@ module Fluent::Plugin
95
95
  # b: base factor, @retry_exponential_backoff_base
96
96
  # k: times
97
97
  # total retry time: c + c * b^1 + (...) + c*b^k = c*b^(k+1) - 1
98
- config_param :retry_wait, :time, default: 1, desc: 'Seconds to wait before next retry to flush, or constant factor of exponential backoff.'
98
+ config_param :retry_wait, :time, default: 10, desc: 'Seconds to wait before next retry to flush, or constant factor of exponential backoff.'
99
99
  config_param :retry_exponential_backoff_base, :float, default: 2, desc: 'The base number of exponential backoff for retries.'
100
100
  config_param :retry_max_interval, :time, default: nil, desc: 'The maximum interval seconds for exponential backoff between retries while failing.'
101
101
  config_param :retry_randomize, :bool, default: false, desc: 'If true, output plugin will retry after randomized interval not to do burst retries.'
@@ -358,7 +358,6 @@ module Fluent::Plugin
358
358
  if @retry.limit?
359
359
  msg = "Hit limit for retries."
360
360
  log.warn msg, retry_times: @retry.steps, error: e.message
361
- break
362
361
  else
363
362
  msg = "failed to connect or search."
364
363
  log.warn(msg, retry_times: @retry.steps, next_retry_time: @retry.next_time.round, error: error)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test-opensearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.3
4
+ version: 0.0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleh