logstash-output-analyticdb 5.4.0.6 → 5.4.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logstash/outputs/analyticdb.rb +4 -2
- data/logstash-output-analyticdb.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e60c64a039896b7e71c01990a5aeb0e53cbc145bab218477d8c24ebc313f35e9
|
4
|
+
data.tar.gz: b1734a86910ddcb4c4379021d0977f41e31c184b9f95d3076837ade548fce5a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e13ef14bd8626583f174d10ef5ff19b4dc57934fa7528009258e2aad78c5edfbcc2de11d29e4b92ea2ce55503025d197d4cb3e5d8370b3a43fd8bf3fece891d
|
7
|
+
data.tar.gz: 7b5c552942cf3981ac118440a1dcdcee93ca66a549dfe243280bc040553b4731817adec293b870c4ca24522678a4be5cdee80c0953185d463580f3631cbc0068
|
@@ -307,6 +307,7 @@ class LogStash::Outputs::Analyticdb < LogStash::Outputs::Base
|
|
307
307
|
|
308
308
|
if attempts > @max_flush_exceptions
|
309
309
|
@logger.error("JDBC - max_flush_exceptions has been reached. #{submit_actions.length} events have been unable to be sent to SQL and are being dropped. See previously logged exceptions for details.")
|
310
|
+
raise "JDBC - max_flush_exceptions #{max_flush_exceptions} has been reached. #{submit_actions.length} events have been unable to be sent to SQL and are being dropped. See previously logged exceptions for details."
|
310
311
|
break
|
311
312
|
end
|
312
313
|
end
|
@@ -370,10 +371,11 @@ class LogStash::Outputs::Analyticdb < LogStash::Outputs::Base
|
|
370
371
|
end
|
371
372
|
|
372
373
|
def retry_exception?(exception, event)
|
373
|
-
retrying = (exception.respond_to? 'getSQLState' and (RETRYABLE_SQLSTATE_CLASSES.include?(exception.getSQLState.to_s[0, 2]) or @retry_sql_states.include?(exception.getSQLState)))
|
374
|
+
# retrying = (exception.respond_to? 'getSQLState' and (RETRYABLE_SQLSTATE_CLASSES.include?(exception.getSQLState.to_s[0, 2]) or @retry_sql_states.include?(exception.getSQLState)))
|
375
|
+
retrying = true
|
374
376
|
log_jdbc_exception(exception, retrying, event)
|
375
377
|
|
376
|
-
|
378
|
+
retrying
|
377
379
|
end
|
378
380
|
|
379
381
|
def log_jdbc_exception(exception, retrying, event)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-output-analyticdb'
|
3
|
-
s.version = '5.4.0.
|
3
|
+
s.version = '5.4.0.7'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = 'This plugin allows you to output to SQL, via JDBC'
|
6
6
|
s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install 'logstash-output-analyticdb'. This gem is not a stand-alone program"
|