logstash-input-jdbc 4.2.3 → 4.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ad7f5e28e36aca88f921db71f6bb1a5dcadebc2
4
- data.tar.gz: 9371d4fa54d183749a6d68392ba3d0b19fff21c5
3
+ metadata.gz: f152eb0f75f58fc955c3d96db6d7cd5c6efe044b
4
+ data.tar.gz: 7b033a4b940622e5b629335fe890476fa37e848f
5
5
  SHA512:
6
- metadata.gz: 24b9cf24cfc7ffbd85494f52a8412dd420eac7cd05fd1f7a07c1af505f19f0e63e606f0c81ff32eb33acc8179db783259226ca7a3c12066b9ab9ab0fe332052a
7
- data.tar.gz: 21b0844fdf12931bb2a7a95db7cd081e61b0e444d48c3806e91918c43f8c7930fbfb8c3b6d4507ded1b895382d8a81f5e576033c47a7b382ae50efb61d36a2dd
6
+ metadata.gz: abdd95f81a9c693886028bfd61b9f2142a3e1a4178a9f1ab314a486442230a5ed1bd32df056895f444f87802c5d9137d534e205fd4c5ea49b202dbae04a7f701
7
+ data.tar.gz: dc992299c06f8390e4a7a698386eababd7af6cee634913d5afeb6eb395c3b19277b9f8bf46d07bfb0d27c426798eee78ea7d6f7f3bc0d86b49e39ed555292cdf
@@ -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
- @database.disconnect if @database
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
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-jdbc'
3
- s.version = '4.2.3'
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.3
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-15 00:00:00.000000000 Z
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