logstash-integration-jdbc 5.4.6 → 5.4.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: ecf492b84190adb77da3e76f67d18587fce76eac2a67a089e5bcea7fcf3959bd
4
- data.tar.gz: c0cd2016d3aaba9b7cf9f3d420f5b2a9037a153c852981b764699ae01988c741
3
+ metadata.gz: d5c04b526284f336bb23a9fc70ba7a516fe14e2245a54369b7ee1880238b3152
4
+ data.tar.gz: def3a4fef6a0a94301973f3f27c04cad37665192845ff0e2c8597daee9176422
5
5
  SHA512:
6
- metadata.gz: b7b3daa5bbb84dc22499dc833c0d9f1da6f831a58c76cea4d225c4f94437b1aea52cffd0f35ef8f62f287d639c766aa592d1dcb7949bb3c7fb72e7dbdcc0c2b4
7
- data.tar.gz: 9ba1215967ea68381a1b634d86d6ad6a4b28225dfbf595f3bc44ce55d8b77751ccb7accc509395900076cab53247cb5e4bba90ffbb16fc110b6dce76a65118cf
6
+ metadata.gz: 94a6e5c731897e4f1d83e161d4c009bb4d549249fb1d34f7e237bba8c6e0a71e742c9add3e34ed9499fb00315cde934b82cde88433f314bdaf146fc70880e50c
7
+ data.tar.gz: 1ebe17301cd731035da8751c82214d6591db988327589571abde08a5f69e797b0321b3622ddd803f1fa750903ea327e60ba5dbf9dff2a33d995b42b9cc716799
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 5.4.7
2
+ - Update sequel version to >= 5.74.0. It fixes the generic jdbc adapter to properly handle disconnect errors [#153](https://github.com/logstash-plugins/logstash-integration-jdbc/pull/153)
3
+
1
4
  ## 5.4.6
2
5
  - Update sequel version to >= 5.73.0. The ibmdb and jdbc/db2 adapters were fixed to properly handle disconnect errors, removing the related connection from the pool [#144](https://github.com/logstash-plugins/logstash-integration-jdbc/pull/144)
3
6
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-integration-jdbc'
3
- s.version = '5.4.6'
3
+ s.version = '5.4.7'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = "Integration with JDBC - input and filter plugins"
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"
@@ -29,7 +29,9 @@ Gem::Specification.new do |s|
29
29
  # Restrict use of this plugin to versions of Logstash where support for integration plugins is present.
30
30
  s.add_runtime_dependency "logstash-core", ">= 6.5.0"
31
31
  s.add_runtime_dependency 'logstash-codec-plain'
32
- s.add_runtime_dependency 'sequel', '>= 5.73.0'
32
+ # Pinned sequel version to >= 5.74.0 as it fixes the generic jdbc adapter to properly
33
+ # handle disconnection errors, and avoid stale connections in the pool.
34
+ s.add_runtime_dependency 'sequel', '>= 5.74.0'
33
35
  s.add_runtime_dependency 'lru_redux' # lru cache with ttl
34
36
 
35
37
  s.add_runtime_dependency 'tzinfo'
@@ -1610,6 +1610,9 @@ describe LogStash::Inputs::Jdbc do
1610
1610
  end
1611
1611
 
1612
1612
  it "raise a loading error" do
1613
+ expect(File.exists?(invalid_driver_jar_path)).to be true
1614
+ expect(FileTest.readable?(invalid_driver_jar_path)).to be false
1615
+
1613
1616
  expect { plugin.register }.
1614
1617
  to raise_error(LogStash::PluginLoadingError, /unable to load .*? from :jdbc_driver_library, file not readable/)
1615
1618
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-integration-jdbc
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.4.6
4
+ version: 5.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-03 00:00:00.000000000 Z
11
+ date: 2024-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -77,7 +77,7 @@ dependencies:
77
77
  requirements:
78
78
  - - ">="
79
79
  - !ruby/object:Gem::Version
80
- version: 5.73.0
80
+ version: 5.74.0
81
81
  name: sequel
82
82
  prerelease: false
83
83
  type: :runtime
@@ -85,7 +85,7 @@ dependencies:
85
85
  requirements:
86
86
  - - ">="
87
87
  - !ruby/object:Gem::Version
88
- version: 5.73.0
88
+ version: 5.74.0
89
89
  - !ruby/object:Gem::Dependency
90
90
  requirement: !ruby/object:Gem::Requirement
91
91
  requirements: