logstash-output-elasticsearch 9.2.1-java → 9.2.3-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4efe2864f268887acaf9d9daf5f608ee81f969aa3c543c27aea8af3f6ecff2ac
4
- data.tar.gz: 7bcf92ede9cdfc411426c8102debd0db01757c2142be6aea56f1f3c6160d8e6d
3
+ metadata.gz: 2e4f54b01a626097bb553a3955afb9718ba7646c14f08ad0fe0eb89c15162b36
4
+ data.tar.gz: 957ae579af4d96853c4be2da24802cf8da56d6277868ed2353696a5aa607b0bf
5
5
  SHA512:
6
- metadata.gz: 0dba114c43a756932d1721b0a6ed6ae034276d547be111135eb7e1961cf04218b5de2ee75b864ca6ac60503105d0bb243de7957d6ef0b63d735d37571436e960
7
- data.tar.gz: e54ce98660279425ba01fb7034a9258752ee80c1469492ddcd357a26f971ea5936c3fb23a1645dd3a137301f1889d4b2cc356cea72b34debf81a020aab33a2bb
6
+ metadata.gz: 366093f142db6dcf2db65ca6ca8cf342b67ac2ac61b4a1ba9bd7820701844fb2b950096438354136f7f0d9e67a70e5900b0231864d7e1e804b1705cb155f97b1
7
+ data.tar.gz: 1942f02dffe708e9f8bbd2b6ec3c4c134577625ced71012415cb8fcf87e6ffdad7fc5ae53fc0690def17fa2e574719c42ca590a44fdc91ad34b1caf2a017fdc8
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 9.2.3
2
+ - Tweaked logging statements to reduce verbosity
3
+
4
+ ## 9.2.2
5
+ - Fixed numerous issues relating to builds on Travis [#799](https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/799)
6
+
1
7
  ## 9.2.1
2
8
  - Added text offering hosted Elasticsearch service
3
9
 
data/Gemfile CHANGED
@@ -9,3 +9,7 @@ if Dir.exist?(logstash_path) && use_logstash_source
9
9
  gem 'logstash-core', :path => "#{logstash_path}/logstash-core"
10
10
  gem 'logstash-core-plugin-api', :path => "#{logstash_path}/logstash-core-plugin-api"
11
11
  end
12
+
13
+ if RUBY_VERSION == "1.9.3"
14
+ gem 'rake', '12.2.1'
15
+ end
@@ -240,7 +240,7 @@ module LogStash; module Outputs; class ElasticSearch; class HttpClient;
240
240
  # Try to keep locking granularity low such that we don't affect IO...
241
241
  @state_mutex.synchronize { @url_info.select {|url,meta| meta[:state] != :alive } }.each do |url,meta|
242
242
  begin
243
- logger.info("Running health check to see if an Elasticsearch connection is working",
243
+ logger.debug("Running health check to see if an Elasticsearch connection is working",
244
244
  :healthcheck_url => url, :path => @healthcheck_path)
245
245
  response = perform_request_to_url(url, :head, @healthcheck_path)
246
246
  # If no exception was raised it must have succeeded!
@@ -379,9 +379,6 @@ module LogStash; module Outputs; class ElasticSearch; class HttpClient;
379
379
  # These aren't discarded from the pool because these are often very transient
380
380
  # errors
381
381
  raise e
382
- rescue => e
383
- logger.warn("UNEXPECTED POOL ERROR", :e => e)
384
- raise e
385
382
  ensure
386
383
  return_connection(url)
387
384
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-elasticsearch'
3
- s.version = '9.2.1'
3
+ s.version = '9.2.3'
4
4
  s.licenses = ['apache-2.0']
5
5
  s.summary = "Stores logs in Elasticsearch"
6
6
  s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
@@ -2,12 +2,6 @@ require "logstash/devutils/rspec/spec_helper"
2
2
  require 'manticore'
3
3
  require 'elasticsearch'
4
4
 
5
- # by default exclude secure_integration tests unless requested
6
- # normal integration specs are already excluded by devutils' spec helper
7
- RSpec.configure do |config|
8
- config.filter_run_excluding config.exclusion_filter.add(:secure_integration => true)
9
- end
10
-
11
5
  module ESHelper
12
6
  def get_host_port
13
7
  "127.0.0.1:9200"
@@ -11,13 +11,15 @@ describe LogStash::Outputs::ElasticSearch do
11
11
 
12
12
  before(:each) do
13
13
  if do_register
14
- subject.register
14
+ # Build the client and set mocks before calling register to avoid races.
15
+ subject.build_client
15
16
 
16
17
  # Rspec mocks can't handle background threads, so... we can't use any
17
18
  allow(subject.client.pool).to receive(:start_resurrectionist)
18
19
  allow(subject.client.pool).to receive(:start_sniffer)
19
20
  allow(subject.client.pool).to receive(:healthcheck!)
20
21
  allow(subject.client).to receive(:maximum_seen_major_version).at_least(:once).and_return(maximum_seen_major_version)
22
+ subject.register
21
23
  subject.client.pool.adapter.manticore.respond_with(:body => "{}")
22
24
  end
23
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-elasticsearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.2.1
4
+ version: 9.2.3
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-17 00:00:00.000000000 Z
11
+ date: 2018-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement