logstash-output-analyticdb 5.4.0.9 → 5.4.0.10

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: 7330da9d288accf56c8142506406b44e0c557ce5df3734ea61f7ef215c6c664d
4
- data.tar.gz: 503f99fc7878763de54c7d8eaf3cfcf0f5e4c541acfe09cdb6879a4913bb2168
3
+ metadata.gz: 1622874dc82c31b61bcbe5650256b56a09459e3f3acd0855c44328c7cd95737b
4
+ data.tar.gz: d29135a949ebccc68532f130027d635d0312c2d98c2a01f1cb03fcf6bab70a4b
5
5
  SHA512:
6
- metadata.gz: a477997bfb30180e871c4189a4a285e177602aead94f7c2fd5e686cfd0d513f66891eecadd5c93e4963af73b326a10aa81ba65e93eefbddeda9393fd9cda21bd
7
- data.tar.gz: 2e71dabedaa9c53f2bb47745a9ca54dda0230c3eea663f1dce12a96f756f086be9634b20fa5e85d715b269d85f726d8759184b802d878c000b31d4312a13ac7c
6
+ metadata.gz: fa7bdb92f436cbedfb2f5c655fb26a799ddb260e9ca8a4bd05a550922226cafe96b68205e62f7ff57f48bc97d6eecaca2ae1e64128ec05708ae3402a64281580
7
+ data.tar.gz: 1b1189e08497ce56ab1370df1e6d427d5482cbc38eb355052464fc99cac50cf39862f1b82baafe920e6ee2ed7b90517222a826d04b3cf885e7ad87a3fbf6d05b
@@ -108,6 +108,8 @@ class LogStash::Outputs::Analyticdb < LogStash::Outputs::Base
108
108
 
109
109
  config :commit_size, validate: :number, default: 32768
110
110
 
111
+ config :skip_exception, validate: :boolean, default: false
112
+
111
113
  def register
112
114
  @logger.info('JDBC - Starting up')
113
115
 
@@ -307,7 +309,10 @@ class LogStash::Outputs::Analyticdb < LogStash::Outputs::Base
307
309
  attempts += 1
308
310
 
309
311
  if attempts > @max_flush_exceptions
310
- @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.")
312
+ if (@skip_exception)
313
+ @logger.error("JDBC - max_flush_exceptions has been reached. #{submit_actions.length} events have been unable to be sent to SQL and are being skipped. See previously logged exceptions for details.")
314
+ break
315
+ end
311
316
  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."
312
317
  break
313
318
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-analyticdb'
3
- s.version = '5.4.0.9'
3
+ s.version = '5.4.0.10'
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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-analyticdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.4.0.9
4
+ version: 5.4.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - the_angry_angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-24 00:00:00.000000000 Z
11
+ date: 2019-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement