logstash-output-newrelic 1.0.8 → 1.0.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 15a58f1472c4f00bc1decbd672cf520a247d192eb6b31b348bc6daa77f2ea27c
4
- data.tar.gz: f71834a29f1507c3948d9044826b7c2cc23e249121b57dacd65103bc8d22f742
3
+ metadata.gz: b0a73f938f33d3039ebcc6244256fbf7bce1b9c6e14e7f750a480c5296b6aeec
4
+ data.tar.gz: 7cb592d5293c3b8a40f77c56ed2a25b4e445f998caee48d5a402a55431c72a57
5
5
  SHA512:
6
- metadata.gz: 9db4eb7268c9c401932ff4bfd2055ca8475c69c962d3a99f41dec89e51833f6b9c527eb887b65d520d20e322401798a231cb5ae53c7d8c78c3bc6581cef77d29
7
- data.tar.gz: b95f9564bd9f6c51d38a3995c86733b78cdaa9cb474ffda178a05006d6f10f47e4fbdb31e1934e0e4e9f31821487dd26be65a49f617c503add87fa394d689982
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&.shutdown
39
- # We want this long enough to not have threading issues
40
- terminationWaitInSeconds = 10
41
- terminatedInTime = @executor&.awaitTermination(terminationWaitInSeconds, java.util.concurrent.TimeUnit::SECONDS)
42
- if !terminatedInTime
43
- raise "Did not shut down within #{terminationWaitInSeconds} seconds"
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
 
@@ -1,7 +1,7 @@
1
1
  module LogStash
2
2
  module Outputs
3
3
  module NewRelicVersion
4
- VERSION = "1.0.8"
4
+ VERSION = "1.0.9"
5
5
  end
6
6
  end
7
7
  end
@@ -62,7 +62,9 @@ describe LogStash::Outputs::NewRelic do
62
62
  end
63
63
 
64
64
  after(:each) do
65
- @newrelic_output&.shutdown
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&.shutdown
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&.shutdown
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.8
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-20 00:00:00.000000000 Z
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