logstash-input-jdbc 2.0.3 → 2.0.4

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
  SHA1:
3
- metadata.gz: f9a172f33d553e84914b76176ea860be37621cb1
4
- data.tar.gz: 1ae5eedcd6b6d392c33b49f6050a661c1a564c4c
3
+ metadata.gz: e8c5cc2740af8903f9a22ea46ab992cbee6d8c86
4
+ data.tar.gz: 1c2773a7b4d978204b86285e5b4742d7f2804af5
5
5
  SHA512:
6
- metadata.gz: 7d2873101ca8ac7491d897317cd8e74dfb1681fd97fc574a4a9f21c1ea186e05278e942697a9c23420f949b4877084fc13d596da3dfafb44bb97d70e84f0f314
7
- data.tar.gz: 607a3fcb288f023ae56cc6f3668c318e15addf16b4ec2911351ec82f099f0636a7409bce584b97743f22e78c6115d07c4f2d7ef7f295253f0463c11fb828cbc4
6
+ metadata.gz: a39e30c007c31f3827e15e912cdeb3ab89487ab134edbd2269846892d0d6a6c3f6d3676ca8ea60da72a66e43991c3f06dd5ce57e3ee729f7fc301aa20d7e1766
7
+ data.tar.gz: ae1ca16f36749b62223dd9e56a627909eb0cb094d410840a2eec97d73db581eb06a9b7da81ca8779ac42f03d7b717f80ba650e4f76246d17221e32795605a1e9
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 2.0.4
2
+ - [#70](https://github.com/logstash-plugins/logstash-input-jdbc/pull/70) prevents multiple queries from being run at the same time
3
+ - [#69](https://github.com/logstash-plugins/logstash-input-jdbc/pull/69) pass password as string to Sequel
4
+
1
5
  ## 2.0.3
2
6
  - Added ability to configure timeout
3
7
  - Added catch-all configuration option for any other options that Sequel lib supports
@@ -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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-jdbc'
3
- s.version = '2.0.3'
3
+ s.version = '2.0.4'
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"
@@ -35,6 +35,12 @@ describe LogStash::Inputs::Jdbc do
35
35
  plugin.stop
36
36
  end
37
37
 
38
+ it "should register with password set" do
39
+ mixin_settings['jdbc_password'] = 'pass'
40
+ expect { plugin.register }.to_not raise_error
41
+ plugin.stop
42
+ end
43
+
38
44
  it "should stop without raising exception" do
39
45
  plugin.register
40
46
  expect { plugin.stop }.to_not raise_error
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: 2.0.3
4
+ version: 2.0.4
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-21 00:00:00.000000000 Z
11
+ date: 2015-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstash-core