Address issue 44.
This commit is contained in:
parent
2b27f39088
commit
ded1106b13
|
@ -334,7 +334,10 @@ class LogStash::Outputs::Jdbc < LogStash::Outputs::Base
|
|||
end
|
||||
|
||||
def retry_exception?(exception)
|
||||
return (exception.class != java.sql.SQLException or
|
||||
RETRYABLE_SQLSTATE_CLASSES.include?(e.getSQLState[0,2]))
|
||||
if exception.respond_to? 'getSQLState'
|
||||
return RETRYABLE_SQLSTATE_CLASSES.include?(e.getSQLState[0,2])
|
||||
end
|
||||
|
||||
true
|
||||
end
|
||||
end # class LogStash::Outputs::jdbc
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Gem::Specification.new do |s|
|
||||
s.name = 'logstash-output-jdbc'
|
||||
s.version = "0.2.7"
|
||||
s.version = "0.2.8"
|
||||
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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user