logstash-core 2.3.0.snapshot4-java → 2.3.0.snapshot5-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-core/version.rb +1 -1
- data/lib/logstash/pipeline.rb +3 -5
- data/lib/logstash/version.rb +1 -1
- data/logstash-core.gemspec +1 -1
- data/spec/logstash/pipeline_spec.rb +1 -1
- 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: 19d757a2e6655f3c922d5a1e074f291758551b40
|
4
|
+
data.tar.gz: 9d14bacf36da115ca74b3b4d2858b2e8a332093d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25c90f68b2bf8e11def16fb4963c84091844c312b8444f27ade702aeb7fad7baa4c2d59da2c376d34e4e1c18d165cfd92196b310754fe681f23579988310339f
|
7
|
+
data.tar.gz: 05353a419db92249e81303c4dfb5de3244259c109c072e610c945aca36cc17bff311d0cd6c134b910a0e1eadaec3dbfa2aca027c06dfa3cb38c6cfc5f2fa8c5a
|
data/lib/logstash/pipeline.rb
CHANGED
@@ -19,6 +19,8 @@ require "logstash/output_delegator"
|
|
19
19
|
module LogStash; class Pipeline
|
20
20
|
attr_reader :inputs, :filters, :outputs, :worker_threads, :events_consumed, :events_filtered, :reporter, :pipeline_id, :logger, :thread, :config_str, :original_settings
|
21
21
|
|
22
|
+
DEFAULT_OUTPUT_WORKERS = 1
|
23
|
+
|
22
24
|
DEFAULT_SETTINGS = {
|
23
25
|
:default_pipeline_workers => LogStash::Config::CpuCoreStrategy.maximum,
|
24
26
|
:pipeline_batch_size => 125,
|
@@ -413,16 +415,12 @@ module LogStash; class Pipeline
|
|
413
415
|
klass = LogStash::Plugin.lookup(plugin_type, name)
|
414
416
|
|
415
417
|
if plugin_type == "output"
|
416
|
-
LogStash::OutputDelegator.new(@logger, klass,
|
418
|
+
LogStash::OutputDelegator.new(@logger, klass, DEFAULT_OUTPUT_WORKERS, *args)
|
417
419
|
else
|
418
420
|
klass.new(*args)
|
419
421
|
end
|
420
422
|
end
|
421
423
|
|
422
|
-
def default_output_workers
|
423
|
-
@settings[:pipeline_workers] || @settings[:default_pipeline_workers]
|
424
|
-
end
|
425
|
-
|
426
424
|
# for backward compatibility in devutils for the rspec helpers, this method is not used
|
427
425
|
# in the pipeline anymore.
|
428
426
|
def filter(event, &block)
|
data/lib/logstash/version.rb
CHANGED
data/logstash-core.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.require_paths = ["lib"]
|
18
18
|
gem.version = LOGSTASH_CORE_VERSION
|
19
19
|
|
20
|
-
gem.add_runtime_dependency "logstash-core-event-java", "2.3.0.
|
20
|
+
gem.add_runtime_dependency "logstash-core-event-java", "2.3.0.snapshot5"
|
21
21
|
|
22
22
|
gem.add_runtime_dependency "cabin", "~> 0.8.0" #(Apache 2.0 license)
|
23
23
|
gem.add_runtime_dependency "pry", "~> 0.10.1" #(Ruby license)
|
@@ -209,7 +209,7 @@ describe LogStash::Pipeline do
|
|
209
209
|
pipeline.run
|
210
210
|
|
211
211
|
expect(pipeline.outputs.size ).to eq(1)
|
212
|
-
expect(pipeline.outputs.first.workers.size ).to eq(
|
212
|
+
expect(pipeline.outputs.first.workers.size ).to eq(::LogStash::Pipeline::DEFAULT_OUTPUT_WORKERS)
|
213
213
|
expect(pipeline.outputs.first.workers.first.num_closes ).to eq(1)
|
214
214
|
end
|
215
215
|
|
metadata
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.0.
|
4
|
+
version: 2.3.0.snapshot5
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
15
15
|
requirements:
|
16
16
|
- - '='
|
17
17
|
- !ruby/object:Gem::Version
|
18
|
-
version: 2.3.0.
|
18
|
+
version: 2.3.0.snapshot5
|
19
19
|
name: logstash-core-event-java
|
20
20
|
prerelease: false
|
21
21
|
type: :runtime
|
@@ -23,7 +23,7 @@ dependencies:
|
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.3.0.
|
26
|
+
version: 2.3.0.snapshot5
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
29
29
|
requirements:
|