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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 060e88f92b12571dce771d6f79494fb5a982e0b7
4
- data.tar.gz: b56181ebc53dddb35bfbf629b7e9891bcb38b63a
3
+ metadata.gz: 1bb29b50e2fba0030dab2533db69c588b53b18d3
4
+ data.tar.gz: 2a3469ff4b22cdc42bc0cd2eadf65e55eecbd2f6
5
5
  SHA512:
6
- metadata.gz: 463294e89e3d9d3f2164fe5bf38e58cdbce6aec59fe6510c1f57931c0251705badf714397ec3f4e6cab0c35c34df4cc5abb5649b04c5e0bf6c1509597561d962
7
- data.tar.gz: 2ae3e29871df8c2da16925c22cb279009439b2c9bcff529ab7bed215bc5027d00ff329aeabcff9c20f423b8eecbbc0c72d2fa9b08b88551e4f043a638c65177a
6
+ metadata.gz: 19af0d42ad2f1288da6a080a1a923306a29e3c0780b32d05b3f6e845c184addcbf43cb20a2d6e6ca0fc8c82bcc3b7a0d7d8fc9e38194b7cba84df693570e9177
7
+ data.tar.gz: befcd1db23db37bd5cefe59d0c8451c45bed70b7c9f59772f390b063d693a700245f0470c9de38dd277320c6437791a852d57ea25f9af50a2fdbebf40dc36082
@@ -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) if @filter_threads
140
+ @filter_threads.each(&:join)
140
141
  end
141
142
 
142
143
  def shutdown_outputs
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  # The version of logstash.
3
- LOGSTASH_VERSION = "2.1.0.snapshot4"
3
+ LOGSTASH_VERSION = "2.1.1"
4
4
 
5
5
  # Note to authors: this should not include dashes because 'gem' barfs if
6
6
  # you include a dash in the version string.
@@ -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.0.snapshot4
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-11-20 00:00:00.000000000 Z
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: 1.3.1
329
+ version: '0'
330
330
  requirements: []
331
331
  rubyforge_project:
332
332
  rubygems_version: 2.4.5