Fix exceptions counter
This commit is contained in:
parent
e56176bbea
commit
7a1da5b7cd
|
@ -14,6 +14,4 @@ class RingBuffer < Array
|
||||||
self.push(el)
|
self.push(el)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
alias :push :<<
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -124,7 +124,8 @@ class LogStash::Outputs::Jdbc < LogStash::Outputs::Base
|
||||||
|
|
||||||
if @exceptions_tracker.reject { |i| i.nil? }.count >= @max_flush_exceptions
|
if @exceptions_tracker.reject { |i| i.nil? }.count >= @max_flush_exceptions
|
||||||
@logger.error("JDBC - max_flush_exceptions has been reached")
|
@logger.error("JDBC - max_flush_exceptions has been reached")
|
||||||
raise e
|
log_jdbc_exception(e)
|
||||||
|
raise LogStash::ShutdownSignal.new
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
Gem::Specification.new do |s|
|
Gem::Specification.new do |s|
|
||||||
s.name = 'logstash-output-jdbc'
|
s.name = 'logstash-output-jdbc'
|
||||||
s.version = "0.2.0.rc4"
|
s.version = "0.2.0.rc5"
|
||||||
s.licenses = [ "Apache License (2.0)" ]
|
s.licenses = [ "Apache License (2.0)" ]
|
||||||
s.summary = "This plugin allows you to output to SQL, via JDBC"
|
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"
|
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"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user