sensu 0.24.0 → 0.24.1

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: 78efe491718e093bc8706ba094ceabfc7afe5147
4
- data.tar.gz: 44bcea9d028f5eb956705cdd5eb5198bf5bd322a
3
+ metadata.gz: 1e3f468041197d7179ce425bcb860e4aaa086ed2
4
+ data.tar.gz: 6cdf694c5458e4f3f2f6f4fb39f34e5fa6f6e654
5
5
  SHA512:
6
- metadata.gz: e5732621897ee9fda7044548720ffad14209d1c654e5fd4e7d6ba4cedceaed8cdaa41f79f5e05f8cd6f61b4560fcd687df97659d42116ada86e7dcf1726325eb
7
- data.tar.gz: 6d7ce44d97d42ae69820ebfa9fbbd3a3b7dc1da55a6f684da2020dedaca21b1eb53bfe3d956227c925575bcc123b624badbaf75dd6026c503f36826c7a0d1b9b
6
+ metadata.gz: 95ad9721f784e6e44d8c36f97e1f3119f1753665a3dc9bd9683600f0b241e00d637b41a51ecaf3ebc05aa2fd8c17863868e826a131db0d95b4064814ede3f970
7
+ data.tar.gz: 359860c37128e467458a0a9f9ffd54261253b0c22e9bc4543b7b03f31602966176f3efcefdd420179871dba99fd0a6c0f611879c97775932919cff8a87fa923c
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: 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: 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
  name: eventmachine