sensu 1.0.1 → 1.0.2

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: 89d6b3cbfaa886383886a8bb7d0ff06dbac1ea37
4
- data.tar.gz: 7aef72322eaac5cbc763524077e5097a7b62a590
3
+ metadata.gz: 9fcfd58e1ef62f0e869b6e47364bb4c3f5486e6c
4
+ data.tar.gz: 19b150de137c08a499808c34c060f5ad1bbc30aa
5
5
  SHA512:
6
- metadata.gz: 4c7c1dd7934298f502c09aa6bc5e1354da3f596414f032960d5b559cc0438a8b20200b7868e00bf03751dd072f1f2f6475c146ae4e5c95811acdb361f09e9599
7
- data.tar.gz: 140a4ce0e5d33b5a374697234abb7b09bec1fed2d3d1bd345dfdfa3bceaef0d5fedb6e52f0465cb31d708025064c05beffbd9afadb51dbb4924ba514f0fb8ebb
6
+ metadata.gz: 043e20124eb754d55a2067e5ee894f7427f85bfdaaa9b3da5825947a3c172ae8b744956b462c76cb5a4d4ee6755e874bb3d73b250dbc19435a94d226f7b7a449
7
+ data.tar.gz: 4476af87cd6db33c7b8979fc2443df15492311b4152171fdf66cf835ad05575d04ffcc71c1195aad86298aa27ad5a6e81955c5e79071a63458114c3f77c14aab
@@ -1,3 +1,14 @@
1
+ ## 1.0.2 - 2017-07-27
2
+
3
+ ### Fixes
4
+
5
+ Addressed an issue with client keepalive transport acknowledgments. We
6
+ discovered a situation where poor Redis performance could negatively
7
+ impact client keepalive processing, potentially triggering a compounding
8
+ failure that the Sensu server is unable to recover from. Moving
9
+ acknowledgments to the next tick of the EventMachine reactor avoids the
10
+ situation entirely.
11
+
1
12
  ## 1.0.1 - 2017-07-24
2
13
 
3
14
  ### Fixes
@@ -1,7 +1,7 @@
1
1
  module Sensu
2
2
  unless defined?(Sensu::VERSION)
3
3
  # Sensu release version.
4
- VERSION = "1.0.1".freeze
4
+ VERSION = "1.0.2".freeze
5
5
 
6
6
  # Sensu release information.
7
7
  RELEASE_INFO = {
@@ -187,14 +187,14 @@ module Sensu
187
187
  @logger.debug("received keepalive", :message => message)
188
188
  begin
189
189
  client = Sensu::JSON.load(message)
190
- update_client_registry(client) do
191
- @transport.ack(message_info)
192
- end
190
+ update_client_registry(client)
193
191
  rescue Sensu::JSON::ParseError => error
194
192
  @logger.error("failed to parse keepalive payload", {
195
193
  :message => message,
196
194
  :error => error.to_s
197
195
  })
196
+ end
197
+ EM::next_tick do
198
198
  @transport.ack(message_info)
199
199
  end
200
200
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Porter
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2017-07-24 00:00:00.000000000 Z
12
+ date: 2017-07-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine