Fix exceptions counter

This commit is contained in:
Karl Southern 2015-11-22 18:57:13 +00:00
parent e56176bbea
commit 7a1da5b7cd
3 changed files with 3 additions and 4 deletions

View File

@ -14,6 +14,4 @@ class RingBuffer < Array
self.push(el)
end
end
alias :push :<<
end

View File

@ -124,7 +124,8 @@ class LogStash::Outputs::Jdbc < LogStash::Outputs::Base
if @exceptions_tracker.reject { |i| i.nil? }.count >= @max_flush_exceptions
@logger.error("JDBC - max_flush_exceptions has been reached")
raise e
log_jdbc_exception(e)
raise LogStash::ShutdownSignal.new
end
end

View File

@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'logstash-output-jdbc'
s.version = "0.2.0.rc4"
s.version = "0.2.0.rc5"
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"