sensu 0.24.0-java → 0.24.1-java

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: 783c6d643ba21e63db105cedf4deafa5dc7ca741
4
- data.tar.gz: d0f89a23866ad270a48520a379ce5a0640a80e26
3
+ metadata.gz: 433bbf2acb339656f147cd33329ecf58ba53a9f7
4
+ data.tar.gz: d66d5ec7ba651d64cffd1fc453e2f94c4000fa62
5
5
  SHA512:
6
- metadata.gz: 19d85e4c78407c4a49186fb7cc248f9f8d01ee1139950f98da104047baeb575436ea10abc8a47a36369d1f57016f843ddc825066ce2ed6deab37a0acb010511a
7
- data.tar.gz: 9a6be65ca36e9afd22689551bf69d69a563fba2c4bd95bbee5f551936bfe45cab7a6aa2fd6c3edf7ec4ed96ef554488d5e44b89169d13a86bebcb59656113b93
6
+ metadata.gz: f643d1332fb5b3404963f1b4cc68106cbcc3617345b03aa93efbec26a1ef293e6f51207d739e4fa5bbcaacb6d9aec164e811bbeeed28a786b502f44181d79400
7
+ data.tar.gz: f2e68527b873bab0deec29975272ee6d0378d5a79bff709725cdff6f6f7c937b06590ffdb1d171bb56ce6282354679566cd6f928d1518e3658e6a83b70998b12
data/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## 0.24.1 - 2016-06-07
2
+
3
+ ### Fixes
4
+
5
+ Fixed a critical bug in Sensu server resume() which caused the server to
6
+ crash when querying the state of the Sensu Transport connection before it
7
+ had been initialized. [#1321](https://github.com/sensu/sensu/pull/1321)
8
+
9
+ ### Other
10
+
11
+ Updated references to unmatched tokens, i.e. check result output message,
12
+ to better represent the new scope of token substitution.
13
+ [#1322](https://github.com/sensu/sensu/pull/1322)
14
+
1
15
  ## 0.24.0 - 2016-06-06
2
16
 
3
17
  ### Important
@@ -153,7 +153,7 @@ module Sensu
153
153
  @checks_in_progress.delete(check[:name])
154
154
  end
155
155
  else
156
- check[:output] = "Unmatched command tokens: " + unmatched_tokens.join(", ")
156
+ check[:output] = "Unmatched client token(s): " + unmatched_tokens.join(", ")
157
157
  check[:status] = 3
158
158
  check[:handle] = false
159
159
  publish_check_result(check)
@@ -1,7 +1,7 @@
1
1
  module Sensu
2
2
  unless defined?(Sensu::VERSION)
3
3
  # Sensu release version.
4
- VERSION = "0.24.0".freeze
4
+ VERSION = "0.24.1".freeze
5
5
 
6
6
  # Sensu check severities.
7
7
  SEVERITIES = %w[ok warning critical unknown].freeze
@@ -1106,15 +1106,24 @@ module Sensu
1106
1106
  # Resume the Sensu server process if it is currently or will
1107
1107
  # soon be paused. The `retry_until_true` helper method is used
1108
1108
  # to determine if the process is paused and if the Redis and
1109
- # transport connections are connected. If the conditions are
1110
- # met, `bootstrap()` will be called and true is returned to stop
1111
- # `retry_until_true`.
1109
+ # transport connections are initiated and connected. If the
1110
+ # conditions are met, `bootstrap()` will be called and true is
1111
+ # returned to stop `retry_until_true`. If the transport has not
1112
+ # yet been initiated, true is is returned, without calling
1113
+ # bootstrap, as we expect bootstrap will be called after the
1114
+ # transport initializes.
1112
1115
  def resume
1113
1116
  retry_until_true(1) do
1114
1117
  if @state == :paused
1115
- if @redis.connected? && @transport.connected?
1116
- bootstrap
1117
- true
1118
+ if @redis.connected?
1119
+ if @transport
1120
+ if @transport.connected?
1121
+ bootstrap
1122
+ true
1123
+ end
1124
+ else
1125
+ true
1126
+ end
1118
1127
  end
1119
1128
  end
1120
1129
  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: 0.24.0
4
+ version: 0.24.1
5
5
  platform: java
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: 2016-06-06 00:00:00.000000000 Z
12
+ date: 2016-06-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  requirement: !ruby/object:Gem::Requirement