logstash-filter-jdbc_streaming 1.0.5 → 1.0.6

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: 846ac85e32b75614304175dc1b80a14ad3fb926a49960d925ce0e3e72d7cc231
4
- data.tar.gz: 3633ec22d341642ae068f59ea67df3757b40a3d0ca2af30581e7550be3f7c3f9
3
+ metadata.gz: 01e521e88f5357fd42a948cfb29dbef356734cbdaf4717e122013f0761e4d9fa
4
+ data.tar.gz: 75781493683b74fac322f010a2036a73b19a2e81e4611cb12959d73402a8d98e
5
5
  SHA512:
6
- metadata.gz: f2ebbd142b4af6139f0f4bbc8855b93bcf3a9e8a6b0e746894e021388a9d10c95b3ea698b1aadd7d1846e0818495c96cd9e6833e260339865e64c86569482e32
7
- data.tar.gz: 66100e0597f0c4dcdbf792dde2f66ad0b6b2306d390f1e7ced1dcc19a06ce38c3757dfc0c5cead4ee61b68aed72937b3e615b842b37f8b03ed41873b3d758321
6
+ metadata.gz: 33781dc46d6235fa820a799f082abb7d8cd2063284a6dea5d2aa7b83d99e3689442a1b394945107b676b3c1a49891936175bcb24757ea3a92548d3f0c8711aa8
7
+ data.tar.gz: 35a03bb6e34966d0e09ef5b8fe906327dac55f83f9352bf301655a6e194d3ac4b1cb43501bfc2b278e768869480d5196986ee9a4ed54a7f0ab76c786faf621fd
@@ -1,3 +1,6 @@
1
+ ## 1.0.6
2
+ - Fixes connection leak in pipeline reloads by properly disconnecting on plugin close
3
+
1
4
  ## 1.0.5
2
5
  - [#11](https://github.com/logstash-plugins/logstash-filter-jdbc_streaming/pull/11) Swap out mysql for postgresql for testing
3
6
 
@@ -131,6 +131,12 @@ module LogStash module Filters class JdbcStreaming < LogStash::Filters::Base
131
131
  end
132
132
  end
133
133
 
134
+ def close
135
+ @database.disconnect
136
+ rescue => e
137
+ logger.warn("Exception caught when attempting to close filter.", :exception => e.message, :backtrace => e.backtrace)
138
+ end
139
+
134
140
  # ----------------------------------------
135
141
  private
136
142
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-filter-jdbc_streaming'
3
- s.version = '1.0.5'
3
+ s.version = '1.0.6'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = "Enrich events with your database data"
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/plugin install gemname. This gem is not a stand-alone program"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-filter-jdbc_streaming
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-04 00:00:00.000000000 Z
11
+ date: 2019-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement