elasticsearch_s3_backup 1.1.7 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/elasticsearch_s3_backup/version.rb +1 -1
- data/lib/elasticsearch_s3_backup.rb +6 -0
- 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: dde7a2602985a4053ca5b06943bc0187710b7a1c
|
4
|
+
data.tar.gz: 3553da1fbf17e5c23ba00ec7173642036906f70b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8415ae26f6693da6092372d833027dbec2ae23623ad3d26a5a017134fa38a72aa88bce3715d1d6001ae6cb1a36e94590ad894d836fb4789938b7627cfacf4628
|
7
|
+
data.tar.gz: 381b7db44f538401eca6ffadac0edfe613d7fe9edf969179be3de2c90c4dd322a7b4c6237bdc48928525d8942f2c6cd3e86956f57931284bccbb8cd37a01db73
|
@@ -169,9 +169,15 @@ module EverTools
|
|
169
169
|
end
|
170
170
|
|
171
171
|
def delete_test_indexes
|
172
|
+
tries ||= 1
|
172
173
|
[@restore_test_index, @backup_test_index].each do |test_index|
|
173
174
|
es_api.indices.delete index: test_index
|
174
175
|
end
|
176
|
+
rescue Elasticsearch::Transport::Transport::Errors::Unauthorized
|
177
|
+
logger.info 'It seems like our auth key expired. Re-create the connection.'
|
178
|
+
@es_api = nil
|
179
|
+
tries -= 1
|
180
|
+
retry if tries >= 0
|
175
181
|
end
|
176
182
|
|
177
183
|
# rubocop:disable Metrics/AbcSize, Lint/RescueException
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticsearch_s3_backup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Herot
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|