logstash-input-jdbc 4.3.18 → 4.3.19

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: 70e0a214e348c26f1431b84ae27846402335b2c4ea7494e4dc39a75020773a7b
4
- data.tar.gz: 60fb0bdabb7f72560d5bd466a2290ad607ad6ab9d16bee81f4351868769d5748
3
+ metadata.gz: 6cc82590a22aa46c7b28e067d16e6779d28813f6d626ab2b6a5c5970730a6232
4
+ data.tar.gz: f2dba28b318b44adf57b9a5906f844f0e9db61a123441b351b40a4048a96e54e
5
5
  SHA512:
6
- metadata.gz: 189329d3d59485bbf3ced93560f02f56d1e760d9ce3745ec8955f5cd8ae0e6ec81dc5784c976a185d0ec0136cc0188a99693ce68b4dde6c50ba8357133f196b5
7
- data.tar.gz: 284d2472358969d0efacb7633d1a22e2f8df48762bbc63d06f2aac6df1c98f2cbadaeb452f04433237263a79a9ec273aee591e38ff139dffd084dc4f915c596e
6
+ metadata.gz: 87afc902275fcd5e1bebc20078acf004f2a6e6f7c6e0d5a6af75f670be000d3f82f926cefa62edd3883060d7a7216399c7c1c664971dde3f90c3c1c8732f1370
7
+ data.tar.gz: ee2798e6ccd009e78da8cc7b49373e3ffc7fbace71943f0704cffc181645b902480a59b6cf0a5e979fe085c6ded1f4996f04ea76f6fbb0d1d69cbe97ae24d69a
@@ -1,3 +1,6 @@
1
+ ## 4.3.19
2
+ - Fixed issue where paging settings in configuration were not being honored [#361](https://github.com/logstash-plugins/logstash-input-jdbc/pull/361)
3
+
1
4
  ## 4.3.18
2
5
  - Fix issue with driver loading [#356](https://github.com/logstash-plugins/logstash-input-jdbc/pull/356)
3
6
 
@@ -244,7 +244,7 @@ module LogStash module PluginMixins module Jdbc
244
244
  begin
245
245
  sql_last_value = @use_column_value ? @value_tracker.value : Time.now.utc
246
246
  @tracking_column_warning_sent = false
247
- @statement_handler.perform_query(@database, @value_tracker.value) do |row|
247
+ @statement_handler.perform_query(@database, @value_tracker.value, @jdbc_paging_enabled, @jdbc_page_size) do |row|
248
248
  sql_last_value = get_column_value(row) if @use_column_value
249
249
  yield extract_values_from(row)
250
250
  end
@@ -29,10 +29,10 @@ module LogStash module PluginMixins module Jdbc
29
29
  # @param db [Sequel::Database]
30
30
  # @param sql_last_value [Integet|DateTime|Time]
31
31
  # @yieldparam row [Hash{Symbol=>Object}]
32
- def perform_query(db, sql_last_value)
32
+ def perform_query(db, sql_last_value, jdbc_paging_enabled, jdbc_page_size)
33
33
  query = build_query(db, sql_last_value)
34
- if @jdbc_paging_enabled
35
- query.each_page(@jdbc_page_size) do |paged_dataset|
34
+ if jdbc_paging_enabled
35
+ query.each_page(jdbc_page_size) do |paged_dataset|
36
36
  paged_dataset.each do |row|
37
37
  yield row
38
38
  end
@@ -74,7 +74,7 @@ module LogStash module PluginMixins module Jdbc
74
74
  # @param db [Sequel::Database]
75
75
  # @param sql_last_value [Integet|DateTime|Time]
76
76
  # @yieldparam row [Hash{Symbol=>Object}]
77
- def perform_query(db, sql_last_value)
77
+ def perform_query(db, sql_last_value, jdbc_paging_enabled, jdbc_page_size)
78
78
  query = build_query(db, sql_last_value)
79
79
  query.each do |row|
80
80
  yield row
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-jdbc'
3
- s.version = '4.3.18'
3
+ s.version = '4.3.19'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = "Creates events from JDBC data"
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 gemname. This gem is not a stand-alone program"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-jdbc
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.18
4
+ version: 4.3.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-27 00:00:00.000000000 Z
11
+ date: 2019-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement