elasticsearch_s3_backup 2.0.6 → 2.0.7
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.rb +8 -1
- data/lib/elasticsearch_s3_backup/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: deb52293ea472ef26f907ce0a325073ff599fb4a
|
4
|
+
data.tar.gz: 61dd18d812a51d0982d822dd7d705f5bbe798119
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6877959a3cd5742e214c2283718905676d60f4932819539ef3e99358c0b78a2b31cc499fe2bcb087e8e8381e9cfcb22ad1a45dce954b2792677c4682ff39bf9f
|
7
|
+
data.tar.gz: a94e493f3f9b0f6412da086b2f9293401ed014d4443ecb06bbf43defb996cf527ca5a795d23a2fec41927287697185f3f98c4f58d0bc1415cf4c03c553676a2b
|
@@ -48,6 +48,12 @@ module EverTools
|
|
48
48
|
delete_test_indexes
|
49
49
|
|
50
50
|
remove_expired_backups
|
51
|
+
|
52
|
+
# Resolve any open Pagerduty incidents from previous backup failures
|
53
|
+
if (pd_incident = pagerduty.get_incident("#{cluster_name} elasticsearch backup"))
|
54
|
+
pd_incident.resolve
|
55
|
+
end
|
56
|
+
|
51
57
|
logger.info 'Finished'
|
52
58
|
rescue Interrupt => e
|
53
59
|
puts "Received #{e.class}"
|
@@ -95,7 +101,8 @@ module EverTools
|
|
95
101
|
def notify(e)
|
96
102
|
if conf['env'] == 'prod'
|
97
103
|
pagerduty.trigger(
|
98
|
-
|
104
|
+
"#{cluster_name} Elasticsearch backup failed",
|
105
|
+
incident_key: "#{cluster_name} elasticsearch backup",
|
99
106
|
client: node_name,
|
100
107
|
details: "#{e.message}\n\n#{e.backtrace}"
|
101
108
|
)
|