diff --git a/CHANGELOG.md b/CHANGELOG.md index a937e1e..176fe47 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Change Log All notable changes to this project will be documented in this file, from 0.2.0. +## [0.2.6] - 2016-05-02 + - Fix for exception infinite loop + ## [0.2.5] - 2016-04-11 ### Added - Basic tests running against DerbyDB diff --git a/lib/logstash/outputs/jdbc.rb b/lib/logstash/outputs/jdbc.rb index 198ed12..7009756 100644 --- a/lib/logstash/outputs/jdbc.rb +++ b/lib/logstash/outputs/jdbc.rb @@ -277,12 +277,12 @@ class LogStash::Outputs::Jdbc < LogStash::Outputs::Base statement end - def log_jdbc_exception(e) - ce = e + def log_jdbc_exception(exception) + current_exception = exception loop do - @logger.error("JDBC Exception encountered: Will automatically retry.", :exception => ce) - ce = e.getNextException() - break if ce == nil + @logger.error("JDBC Exception encountered: Will automatically retry.", :exception => current_exception) + current_exception = current_exception.getNextException() + break if current_exception == nil end end end # class LogStash::Outputs::jdbc diff --git a/logstash-output-jdbc.gemspec b/logstash-output-jdbc.gemspec index f2c67f8..d6df8d5 100644 --- a/logstash-output-jdbc.gemspec +++ b/logstash-output-jdbc.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'logstash-output-jdbc' - s.version = "0.2.6.rc1" + s.version = "0.2.6" s.licenses = [ "Apache License (2.0)" ] s.summary = "This plugin allows you to output to SQL, via JDBC" 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"