es_dump_restore 2.2.0 → 2.2.1

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: 92d15eebfd8d46e234d93dc0868dfbfe0f69a2a0
4
- data.tar.gz: 937b84068b58f036d19befa6c97df87aa4b390cb
3
+ metadata.gz: 1c188ed29e05a09e425c2003846c579f2ba26ffc
4
+ data.tar.gz: 07806afb5097778e4251b7782954db47d248f5fc
5
5
  SHA512:
6
- metadata.gz: 2aef2931dfc1b07cc8ccd5f522737d433db672657430347af66b8a8143b8d821371bb90a0743d365fb26137ca518bb1a918d30d9a4a3059e9e401c2f098f3277
7
- data.tar.gz: ae8c5562157a305db99ce44229eafee4ee958b587ba4e9bd624d7306f932227805f8033473c61a1de5891857274b4086beb6bc86d7be85a44dc896a3d5d5ecfd
6
+ metadata.gz: e253d22358036f4186cd32ff576712fb52cf9314ff16fd64c9e074cd1759625684e39278e4110032abb4271c1815d70d09967022d055d7150d3ff60d3205d2ca
7
+ data.tar.gz: 9e6090b5add8353d9f19a1ca7669b0445e75cb3a6036cfe9e3ef25dd31a73f13e38704db410bac4e154bc3de53c4c385984504f74ab1873af5a2fb467d681a7c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # Version 2.2.1 - November 10, 2017
2
+
3
+ * Add a 5-second sleep between retries (thanks to David Henry!)
4
+
1
5
  # Version 2.2.0 - October 20, 2017
2
6
 
3
7
  * Add an optional command-line parameter for retries on timeout errors (thanks to David Henry!)
@@ -4,6 +4,8 @@ require 'multi_json'
4
4
 
5
5
  module EsDumpRestore
6
6
  class EsClient
7
+ SLEEP_BETWEEN_RETRIES = 5
8
+
7
9
  attr_accessor :base_uri
8
10
  attr_accessor :index_name
9
11
 
@@ -132,6 +134,7 @@ module EsDumpRestore
132
134
  if retries < @exception_retries
133
135
  retries += 1
134
136
  puts "Retrying (#{retries} of #{@exception_retries}) '#{@path_prefix}/_bulk'"
137
+ sleep SLEEP_BETWEEN_RETRIES # add a sleep here so we aren't hammering the server
135
138
  retry
136
139
  end
137
140
  raise e
@@ -1,3 +1,3 @@
1
1
  module EsDumpRestore
2
- VERSION = "2.2.0"
2
+ VERSION = "2.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: es_dump_restore
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nat Budin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-20 00:00:00.000000000 Z
11
+ date: 2017-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json