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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 05f92d45f98c4f9dd2801ffdd1e56bb5f4fe3550a383833773505249997a4c5d
4
- data.tar.gz: 52cd4f1ad8addbc6b5a970b859755e9a4925b102c3411f156bb986d9763561fb
3
+ metadata.gz: e60c64a039896b7e71c01990a5aeb0e53cbc145bab218477d8c24ebc313f35e9
4
+ data.tar.gz: b1734a86910ddcb4c4379021d0977f41e31c184b9f95d3076837ade548fce5a5
5
5
  SHA512:
6
- metadata.gz: cd0bfc9d2a2ff6d9066bf3925012c1b8e7d835f69b4233f2ddc28b178d6e942534c0a67d328da76b0b35d73ca4bb28445f38dec422aaa3f5c1d6bca0b8ab3c3f
7
- data.tar.gz: c711267abf70c0bec1adf2263b197a1fb603792d982db07984c0a61717c51a5b2aaa1b53afa0b5ed80b0d98702ec2a7c39d188d4c21e18d49291847f428cfacd
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
- true
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.6'
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"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-analyticdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.4.0.6
4
+ version: 5.4.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - the_angry_angel