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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d8eb8fee3a310dcb8d8e093bbd95269d3cf983b
4
- data.tar.gz: fb0fd11d7e57a1364a2624ced4cad2c1adc3eb24
3
+ metadata.gz: deb52293ea472ef26f907ce0a325073ff599fb4a
4
+ data.tar.gz: 61dd18d812a51d0982d822dd7d705f5bbe798119
5
5
  SHA512:
6
- metadata.gz: ed6e7acb3a3c18079e6ef9cfb897c2a13736932ee7a9f605528936d88ef38674abcf9a0a53aef86070bf02c2c3ddbadead919e5e1cf00301f823cfe7c66bbfae
7
- data.tar.gz: 48fa0c7ccabb411773edbe731070eddda97d40cb4041967ba068bd22b3b6c24c954cacfc7fb0c12d9af4990cedfce9f13c578fac6e45697660568692c0655bfc
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
- 'prod Elasticsearch S3 failed',
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
  )
@@ -1,5 +1,5 @@
1
1
  module EverTools
2
2
  class ElasticsearchS3Backup
3
- VERSION = '2.0.6'.freeze
3
+ VERSION = '2.0.7'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch_s3_backup
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.6
4
+ version: 2.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Herot