logstash-input-jdbc 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/logstash/inputs/jdbc.rb +1 -1
- data/lib/logstash/plugin_mixins/jdbc.rb +1 -1
- data/logstash-input-jdbc.gemspec +1 -1
- data/spec/inputs/jdbc_spec.rb +4 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a81f6af95e10aaabaaf13f6fed4257dbc75bf079
|
4
|
+
data.tar.gz: a8a8b89e6ed229d9b5af9cd4c2e0d3f50e611248
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05c6eb82359780216bad4946ba65fd79e9a562f244df6c109c956b289de2eb2e6da3fe7272b41ec23ea03962b7b85745e4930280b457ba71eb083779e29aebb9
|
7
|
+
data.tar.gz: 6ed6d9deab0a62eeb21d2610dbd81712a030164827518d7ce5a5ebddbaa170f8fa10664af405791ceefdf4ca05b9715de1c2395e0bb4507e1717169c606b63ae
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## 1.0.2
|
2
|
+
- Prevent multiple queries from being run simultaneously (#70)
|
3
|
+
- Fixed regression introduced with new config options
|
4
|
+
|
1
5
|
## 1.0.1
|
2
6
|
- Added ability to configure timeout
|
3
7
|
- Added catch-all configuration option for any other options that Sequel lib supports
|
data/lib/logstash/inputs/jdbc.rb
CHANGED
@@ -159,7 +159,7 @@ class LogStash::Inputs::Jdbc < LogStash::Inputs::Base
|
|
159
159
|
|
160
160
|
def run(queue)
|
161
161
|
if @schedule
|
162
|
-
@scheduler = Rufus::Scheduler.new
|
162
|
+
@scheduler = Rufus::Scheduler.new(:max_work_threads => 1)
|
163
163
|
@scheduler.cron @schedule do
|
164
164
|
execute_query(queue)
|
165
165
|
end
|
@@ -76,7 +76,7 @@ module LogStash::PluginMixins::Jdbc
|
|
76
76
|
def jdbc_connect
|
77
77
|
opts = {
|
78
78
|
:user => @jdbc_user,
|
79
|
-
:password => @jdbc_password,
|
79
|
+
:password => @jdbc_password.nil? ? nil : @jdbc_password.value,
|
80
80
|
:pool_timeout => @jdbc_pool_timeout
|
81
81
|
}.merge(@sequel_opts)
|
82
82
|
begin
|
data/logstash-input-jdbc.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-input-jdbc'
|
3
|
-
s.version = '1.0.
|
3
|
+
s.version = '1.0.2'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = "This example input streams a string at a definable interval."
|
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/plugin install gemname. This gem is not a stand-alone program"
|
data/spec/inputs/jdbc_spec.rb
CHANGED
@@ -36,9 +36,10 @@ describe "jdbc" do
|
|
36
36
|
plugin.teardown
|
37
37
|
end
|
38
38
|
|
39
|
-
it "should
|
40
|
-
|
41
|
-
expect { plugin.
|
39
|
+
it "should register with password set" do
|
40
|
+
mixin_settings['jdbc_password'] = 'pass'
|
41
|
+
expect { plugin.register }.to_not raise_error
|
42
|
+
plugin.stop
|
42
43
|
end
|
43
44
|
end
|
44
45
|
|
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: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logstash-core
|