test-opensearch 0.0.0.20 → 0.0.0.21

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: e64802826ae07863828975be01dbb8fee1bc0e4d8fef81ad195fe658ede210e0
4
- data.tar.gz: cd18ef4da46e20bd059a3fcf5d9b2791e630e4c37704cc4af17e2480e717113b
3
+ metadata.gz: 833739abc81a6562071c9047e266225855f059853b5071cd11452cff393b4a1a
4
+ data.tar.gz: 75c81ae847a0d5a3e12d8e3e211a7614778ee419ee5ef10f8aa2c194b3063d6f
5
5
  SHA512:
6
- metadata.gz: d79fbfa7dd1f59e79db7c53e422cf3f6f4ad8d62b09f7b20566cfec33077230971083b2691dbb57b081344005b0ad09200a2916eba1a35628b18d3cbcf039858
7
- data.tar.gz: ade76a78db35219afeb6cba5cd4db1bcfb14470c9a0f7d1daf82d9a7ae065602fcb9577d36f6e81448f456f2e773837ac48f35be70627c761f3dd6f76ba0108c
6
+ metadata.gz: e6d93a2323842bf0258558d0da05da7bd76a3b95bfbbd191943cfc9c6203e131db9ee49e0455a7426c7626ca8668d4800c3cb0d3dc0b9ec283d171698b44b3d5
7
+ data.tar.gz: ce93e37096e8ebf4c502990fc172b1c6523b8ba6f285a8e3bc7e9bdb9ef219a45d4385dee1ab4b377e686e51e949990b8f6b95bf22c16e0cf49e20a312cb0e8d
@@ -322,7 +322,7 @@ retry_max_times 5
322
322
 
323
323
  The parameter needs for how long need to wait (time in seconds) to retry again:
324
324
  `exponential_backoff`: wait in seconds will become large exponentially per failure,
325
- `periodic:` plugin will retry periodically with fixed intervals (configured via retry_wait). The default value is `:periodic`
325
+ `periodic`: plugin will retry periodically with fixed intervals (configured via retry_wait). The default value is `:exponential_backoff`
326
326
  Periodic -> fixed :retry_wait
327
327
  Exponential backoff: k is number of retry times
328
328
  c: constant factor, @retry_wait
@@ -331,7 +331,7 @@ k: times
331
331
  total retry time: c + c * b^1 + (...) + c*b^k = c*b^(k+1) - 1
332
332
 
333
333
  ```
334
- retry_type :periodic
334
+ retry_type :exponential_backoff
335
335
  ```
336
336
 
337
337
  ### retry_wait
@@ -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.20'
6
+ s.version = '0.0.0.21'
7
7
  s.authors = ['Oleh']
8
8
  s.email = ['imcotop@icloud.com']
9
9
  s.description = %q{test}
@@ -94,7 +94,7 @@ module Fluent::Plugin
94
94
  # b: base factor, @retry_exponential_backoff_base
95
95
  # k: times
96
96
  # total retry time: c + c * b^1 + (...) + c*b^k = c*b^(k+1) - 1
97
- config_param :retry_wait, :time, default: 5, desc: 'Seconds to wait before next retry , or constant factor of exponential backoff.'
97
+ config_param :retry_wait, :time, default: 1, desc: 'Seconds to wait before next retry , or constant factor of exponential backoff.'
98
98
  config_param :retry_exponential_backoff_base, :float, default: 2, desc: 'The base number of exponential backoff for retries.'
99
99
  config_param :retry_max_interval, :time, default: nil, desc: 'The maximum interval seconds for exponential backoff between retries while failing.'
100
100
  config_param :retry_randomize, :bool, default: false, desc: 'If true, output plugin will retry after randomized interval not to do burst retries.'
@@ -350,7 +350,7 @@ module Fluent::Plugin
350
350
  rescue Faraday::ConnectionFailed, OpenSearch::Transport::Transport::Error => e
351
351
  @retry.step
352
352
  #Raise error if the retry limit has been reached
353
- raise "Hit limit for retries. retry_times: #{@retry.limit?}, error: #{e.message}" if @retry.limit?
353
+ raise "Hit limit for retries. retry_times: #{@retry.steps}, error: #{e.message}" if @retry.limit?
354
354
 
355
355
  #Retry if the retry limit hasn't been reached
356
356
  log.warn("failed to connect or search.", retry_times: @retry.steps, next_retry_time: @retry.next_time.round, error: e.message)
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.20
4
+ version: 0.0.0.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleh