lib/logstash/plugin_mixins/jdbc.rb in logstash-input-jdbc-4.2.1 vs lib/logstash/plugin_mixins/jdbc.rb in logstash-input-jdbc-4.2.2

- old
+ new

@@ -169,10 +169,10 @@ @database.fetch_size = @jdbc_fetch_size unless @jdbc_fetch_size.nil? begin @database.test_connection rescue Sequel::DatabaseConnectionError => e @logger.warn("Failed test_connection.") - @database.close_jdbc_connection + close_jdbc_connection #TODO return false and let the plugin raise a LogStash::ConfigurationError raise e end