logstash-input-jdbc 4.2.3 → 4.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/logstash/plugin_mixins/jdbc.rb +6 -2
- data/logstash-input-jdbc.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f152eb0f75f58fc955c3d96db6d7cd5c6efe044b
|
4
|
+
data.tar.gz: 7b033a4b940622e5b629335fe890476fa37e848f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abdd95f81a9c693886028bfd61b9f2142a3e1a4178a9f1ab314a486442230a5ed1bd32df056895f444f87802c5d9137d534e205fd4c5ea49b202dbae04a7f701
|
7
|
+
data.tar.gz: dc992299c06f8390e4a7a698386eababd7af6cee634913d5afeb6eb395c3b19277b9f8bf46d07bfb0d27c426798eee78ea7d6f7f3bc0d86b49e39ed555292cdf
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## 4.2.4
|
2
|
+
- [#220](https://github.com/logstash-plugins/logstash-input-jdbc/issues/220) Log exception when database connection test fails
|
3
|
+
- Database reconnect: Mark old connection as dead even when clean disconnect fails.
|
4
|
+
|
1
5
|
## 4.2.3
|
2
6
|
- Fix some documentation issues
|
3
7
|
|
@@ -170,7 +170,7 @@ module LogStash::PluginMixins::Jdbc
|
|
170
170
|
begin
|
171
171
|
@database.test_connection
|
172
172
|
rescue Sequel::DatabaseConnectionError => e
|
173
|
-
@logger.warn("Failed test_connection.")
|
173
|
+
@logger.warn("Failed test_connection.", :exception => e)
|
174
174
|
close_jdbc_connection
|
175
175
|
|
176
176
|
#TODO return false and let the plugin raise a LogStash::ConfigurationError
|
@@ -205,7 +205,11 @@ module LogStash::PluginMixins::Jdbc
|
|
205
205
|
|
206
206
|
public
|
207
207
|
def close_jdbc_connection
|
208
|
-
|
208
|
+
begin
|
209
|
+
@database.disconnect if @database
|
210
|
+
rescue => e
|
211
|
+
@logger.warn("Failed to close connection", :exception => e)
|
212
|
+
end
|
209
213
|
@database = nil
|
210
214
|
end
|
211
215
|
|
data/logstash-input-jdbc.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-input-jdbc'
|
3
|
-
s.version = '4.2.
|
3
|
+
s.version = '4.2.4'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = "This example input streams a string at a definable interval."
|
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"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-jdbc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.
|
4
|
+
version: 4.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|