logstash-output-newrelic 1.0.8 → 1.0.9
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0a73f938f33d3039ebcc6244256fbf7bce1b9c6e14e7f750a480c5296b6aeec
|
4
|
+
data.tar.gz: 7cb592d5293c3b8a40f77c56ed2a25b4e445f998caee48d5a402a55431c72a57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67a8e4a292aea78322bda68fab079602819f5fc86222b49aff010abaa3b04f10195e5ce254a56a81d5524baf4c5c45629b9a78e1fc9c355992ff86d35240ef29
|
7
|
+
data.tar.gz: 248bcc51b955e3e2d7a54dd39dee5110cf61c3bc8853a079ef63a564bfa872a6739f610ba5ceb9aa21738e077c558aeb8b2573f2881013e3fdf8c1223fd57796
|
@@ -35,12 +35,14 @@ class LogStash::Outputs::NewRelic < LogStash::Outputs::Base
|
|
35
35
|
|
36
36
|
# Used by tests so that the test run can complete (background threads prevent JVM exit)
|
37
37
|
def shutdown
|
38
|
-
@executor
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
38
|
+
if @executor
|
39
|
+
@executor.shutdown
|
40
|
+
# We want this long enough to not have threading issues
|
41
|
+
terminationWaitInSeconds = 10
|
42
|
+
terminatedInTime = @executor.awaitTermination(terminationWaitInSeconds, java.util.concurrent.TimeUnit::SECONDS)
|
43
|
+
if !terminatedInTime
|
44
|
+
raise "Did not shut down within #{terminationWaitInSeconds} seconds"
|
45
|
+
end
|
44
46
|
end
|
45
47
|
end
|
46
48
|
|
@@ -62,7 +62,9 @@ describe LogStash::Outputs::NewRelic do
|
|
62
62
|
end
|
63
63
|
|
64
64
|
after(:each) do
|
65
|
-
@newrelic_output
|
65
|
+
if @newrelic_output
|
66
|
+
@newrelic_output.shutdown
|
67
|
+
end
|
66
68
|
end
|
67
69
|
|
68
70
|
context "validation of config" do
|
@@ -200,7 +202,7 @@ describe LogStash::Outputs::NewRelic do
|
|
200
202
|
|
201
203
|
# Shut down the plugin so that it has the chance to send a request
|
202
204
|
# (since we're verifying that nothing is sent)
|
203
|
-
@newrelic_output
|
205
|
+
@newrelic_output.shutdown
|
204
206
|
|
205
207
|
expect(a_request(:post, base_uri))
|
206
208
|
.not_to have_been_made
|
@@ -233,7 +235,7 @@ describe LogStash::Outputs::NewRelic do
|
|
233
235
|
|
234
236
|
# Create a new plugin with this specific config that has longer retry sleep
|
235
237
|
# configuration than we normally want
|
236
|
-
@newrelic_output
|
238
|
+
@newrelic_output.shutdown
|
237
239
|
@newrelic_output = LogStash::Plugin.lookup("output", "newrelic").new(specific_config)
|
238
240
|
@newrelic_output.register
|
239
241
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-output-newrelic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- New Relic Logging Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|