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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/es_dump_restore/es_client.rb +3 -0
- data/lib/es_dump_restore/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c188ed29e05a09e425c2003846c579f2ba26ffc
|
4
|
+
data.tar.gz: 07806afb5097778e4251b7782954db47d248f5fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e253d22358036f4186cd32ff576712fb52cf9314ff16fd64c9e074cd1759625684e39278e4110032abb4271c1815d70d09967022d055d7150d3ff60d3205d2ca
|
7
|
+
data.tar.gz: 9e6090b5add8353d9f19a1ca7669b0445e75cb3a6036cfe9e3ef25dd31a73f13e38704db410bac4e154bc3de53c4c385984504f74ab1873af5a2fb467d681a7c
|
data/CHANGELOG.md
CHANGED
@@ -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
|
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.
|
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
|
11
|
+
date: 2017-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|