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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 27d1a53b69fe6d66633b4cb36874d5ca362dea40
4
- data.tar.gz: 9e0eddd924c285c712b9bcd4875803275b106ed0
3
+ metadata.gz: a81f6af95e10aaabaaf13f6fed4257dbc75bf079
4
+ data.tar.gz: a8a8b89e6ed229d9b5af9cd4c2e0d3f50e611248
5
5
  SHA512:
6
- metadata.gz: 1be7db7d416179267954031a631b066b8856d1e396772a3f4918cdcd2f6d3e5fcb6b96967a39f16082c749859e06690acaea5cc3b062c11e0e51f8dc6d41908d
7
- data.tar.gz: 5abb561d1cfe32ffa49dbed2f0358718ace6246841c4051d002580421bfbfcddc7a161500040b6c423c934e4c2ed6898109a7792cc7f26324555870bf42026eb
6
+ metadata.gz: 05c6eb82359780216bad4946ba65fd79e9a562f244df6c109c956b289de2eb2e6da3fe7272b41ec23ea03962b7b85745e4930280b457ba71eb083779e29aebb9
7
+ data.tar.gz: 6ed6d9deab0a62eeb21d2610dbd81712a030164827518d7ce5a5ebddbaa170f8fa10664af405791ceefdf4ca05b9715de1c2395e0bb4507e1717169c606b63ae
@@ -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
@@ -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 = '1.0.1'
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"
@@ -36,9 +36,10 @@ describe "jdbc" do
36
36
  plugin.teardown
37
37
  end
38
38
 
39
- it "should teardown without raising exception" do
40
- plugin.register
41
- expect { plugin.teardown }.to_not raise_error
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.1
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-21 00:00:00.000000000 Z
11
+ date: 2015-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstash-core