sensu 0.24.0-java → 0.24.1-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/lib/sensu/client/process.rb +1 -1
- data/lib/sensu/constants.rb +1 -1
- data/lib/sensu/server/process.rb +15 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 433bbf2acb339656f147cd33329ecf58ba53a9f7
|
4
|
+
data.tar.gz: d66d5ec7ba651d64cffd1fc453e2f94c4000fa62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/sensu/client/process.rb
CHANGED
@@ -153,7 +153,7 @@ module Sensu
|
|
153
153
|
@checks_in_progress.delete(check[:name])
|
154
154
|
end
|
155
155
|
else
|
156
|
-
check[:output] = "Unmatched
|
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)
|
data/lib/sensu/constants.rb
CHANGED
data/lib/sensu/server/process.rb
CHANGED
@@ -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
|
1110
|
-
# met, `bootstrap()` will be called and true is
|
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?
|
1116
|
-
|
1117
|
-
|
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.
|
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-
|
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
|