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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e09ae5a183e12bb57d5b01c239da60a2f6c850c6
4
- data.tar.gz: ce67f4d07040c8515311d3078ad051cf2250330a
3
+ metadata.gz: dde7a2602985a4053ca5b06943bc0187710b7a1c
4
+ data.tar.gz: 3553da1fbf17e5c23ba00ec7173642036906f70b
5
5
  SHA512:
6
- metadata.gz: df87695bcc6259e43c247f639732ff4bc6def6373426dcef3e3eab81daf701a7e35350375d52f5638215781cba2103e4b4ac338e1cd8d46de726853c868479c4
7
- data.tar.gz: 0fb979a4afcb32a1b01f29a3a36e4f658f631e236d0465520f9ed89bc5878ec4bc57ad2227063bad935d31771efc3672c74a228a7747c76e1e8da014736119bb
6
+ metadata.gz: 8415ae26f6693da6092372d833027dbec2ae23623ad3d26a5a017134fa38a72aa88bce3715d1d6001ae6cb1a36e94590ad894d836fb4789938b7627cfacf4628
7
+ data.tar.gz: 381b7db44f538401eca6ffadac0edfe613d7fe9edf969179be3de2c90c4dd322a7b4c6237bdc48928525d8942f2c6cd3e86956f57931284bccbb8cd37a01db73
@@ -1,5 +1,5 @@
1
1
  module EverTools
2
2
  class ElasticsearchS3Backup
3
- VERSION = '1.1.7'
3
+ VERSION = '1.1.8'
4
4
  end
5
5
  end
@@ -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.7
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-03 00:00:00.000000000 Z
11
+ date: 2015-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler