logstash-core 2.1.0.snapshot4-java → 2.1.1-java
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of logstash-core might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/lib/logstash/pipeline.rb +2 -1
- data/lib/logstash/version.rb +1 -1
- data/spec/core/pipeline_spec.rb +23 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1bb29b50e2fba0030dab2533db69c588b53b18d3
|
4
|
+
data.tar.gz: 2a3469ff4b22cdc42bc0cd2eadf65e55eecbd2f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19af0d42ad2f1288da6a080a1a923306a29e3c0780b32d05b3f6e845c184addcbf43cb20a2d6e6ca0fc8c82bcc3b7a0d7d8fc9e38194b7cba84df693570e9177
|
7
|
+
data.tar.gz: befcd1db23db37bd5cefe59d0c8451c45bed70b7c9f59772f390b063d693a700245f0470c9de38dd277320c6437791a852d57ea25f9af50a2fdbebf40dc36082
|
data/lib/logstash/pipeline.rb
CHANGED
@@ -53,6 +53,7 @@ module LogStash; class Pipeline
|
|
53
53
|
# @ready requires thread safety since it is typically polled from outside the pipeline thread
|
54
54
|
@ready = Concurrent::AtomicBoolean.new(false)
|
55
55
|
@input_threads = []
|
56
|
+
@filter_threads = []
|
56
57
|
end # def initialize
|
57
58
|
|
58
59
|
def ready?
|
@@ -136,7 +137,7 @@ module LogStash; class Pipeline
|
|
136
137
|
end
|
137
138
|
|
138
139
|
def wait_filters
|
139
|
-
@filter_threads.each(&:join)
|
140
|
+
@filter_threads.each(&:join)
|
140
141
|
end
|
141
142
|
|
142
143
|
def shutdown_outputs
|
data/lib/logstash/version.rb
CHANGED
data/spec/core/pipeline_spec.rb
CHANGED
@@ -299,4 +299,27 @@ describe LogStash::Pipeline do
|
|
299
299
|
end
|
300
300
|
end
|
301
301
|
end
|
302
|
+
|
303
|
+
describe "stalling_threads" do
|
304
|
+
before(:each) do
|
305
|
+
allow(LogStash::Plugin).to receive(:lookup).with("input", "dummyinput").and_return(DummyInput)
|
306
|
+
allow(LogStash::Plugin).to receive(:lookup).with("codec", "plain").and_return(DummyCodec)
|
307
|
+
allow(LogStash::Plugin).to receive(:lookup).with("output", "dummyoutput").and_return(DummyOutput)
|
308
|
+
end
|
309
|
+
|
310
|
+
context "when the pipeline doesn't have filters" do
|
311
|
+
let(:pipeline_with_no_filters) do
|
312
|
+
<<-eos
|
313
|
+
input { dummyinput {} }
|
314
|
+
output { dummyoutput {} }
|
315
|
+
eos
|
316
|
+
end
|
317
|
+
|
318
|
+
it "doesn't raise an error" do
|
319
|
+
pipeline = TestPipeline.new(pipeline_with_no_filters)
|
320
|
+
pipeline.run
|
321
|
+
expect { pipeline.stalling_threads }.to_not raise_error
|
322
|
+
end
|
323
|
+
end
|
324
|
+
end
|
302
325
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Jordan Sissel
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-12-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
@@ -324,9 +324,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
324
324
|
version: '0'
|
325
325
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
326
326
|
requirements:
|
327
|
-
- - '
|
327
|
+
- - '>='
|
328
328
|
- !ruby/object:Gem::Version
|
329
|
-
version:
|
329
|
+
version: '0'
|
330
330
|
requirements: []
|
331
331
|
rubyforge_project:
|
332
332
|
rubygems_version: 2.4.5
|