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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dacf1faefe3817fb4158d35c81709879f3753206
4
- data.tar.gz: 92ab29d4716a1569922a30bb11e88444de71472a
3
+ metadata.gz: 19d757a2e6655f3c922d5a1e074f291758551b40
4
+ data.tar.gz: 9d14bacf36da115ca74b3b4d2858b2e8a332093d
5
5
  SHA512:
6
- metadata.gz: 701b4d572012650152f1af359d8a91a3837344dde79a8c8afabec771105550fc01f7fb9959e6c4516573587f662c8aeca5bec8e70c6b0e2066e4721e2cf2c83d
7
- data.tar.gz: 1e1957c427e027b467c47cd1fabcbecee272118b5d7f7bffe10b7b7fb7ee07d5427d7f64ffd8d55879de5856e5e05a960afb55281e31fe9c4783d0a59c8c1dff
6
+ metadata.gz: 25c90f68b2bf8e11def16fb4963c84091844c312b8444f27ade702aeb7fad7baa4c2d59da2c376d34e4e1c18d165cfd92196b310754fe681f23579988310339f
7
+ data.tar.gz: 05353a419db92249e81303c4dfb5de3244259c109c072e610c945aca36cc17bff311d0cd6c134b910a0e1eadaec3dbfa2aca027c06dfa3cb38c6cfc5f2fa8c5a
@@ -5,4 +5,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.
7
7
 
8
- LOGSTASH_CORE_VERSION = "2.3.0.snapshot4"
8
+ LOGSTASH_CORE_VERSION = "2.3.0.snapshot5"
@@ -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, default_output_workers, *args)
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)
@@ -11,4 +11,4 @@
11
11
  # eventually this file should be in the root logstash lib fir and dependencies in logstash-core should be
12
12
  # fixed.
13
13
 
14
- LOGSTASH_VERSION = "2.3.0.snapshot4"
14
+ LOGSTASH_VERSION = "2.3.0.snapshot5"
@@ -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.snapshot4"
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(pipeline.default_output_workers)
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.snapshot4
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-24 00:00:00.000000000 Z
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.snapshot4
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.snapshot4
26
+ version: 2.3.0.snapshot5
27
27
  - !ruby/object:Gem::Dependency
28
28
  requirement: !ruby/object:Gem::Requirement
29
29
  requirements: