Skip to content

Commit 7f972ce

Browse files
kaisechengjsvd
andauthored
[Doc] add known limitation and settings for connection issue (#167)
Fixed: #166 Co-authored-by: João Duarte <[email protected]>
1 parent dd4569f commit 7f972ce

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
## Unreleased
1+
## 5.4.10
22
- Adds retry mechanism when checkout Derby from SVN repository [#158](https://github.com/logstash-plugins/logstash-integration-jdbc/pull/158)
3+
- [DOC] add known limitations and settings for connection issue [#167](https://github.com/logstash-plugins/logstash-integration-jdbc/pull/167)
34

45
## 5.4.9
56
- Fix Derby missed driver classes when built locally for version 10.15 [#160](https://github.com/logstash-plugins/logstash-integration-jdbc/pull/160)

docs/input-jdbc.asciidoc

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,29 @@ input {
176176
}
177177
---------------------------------------------------------------------------------------------------
178178

179+
==== Database-specific considerations
180+
181+
The JDBC input plugin leverages the https://github.com/jeremyevans/sequel[sequel] library to query databases through their JDBC drivers.
182+
The implementation of drivers will vary, however, potentially leading to unexpected behavior.
183+
184+
===== Unable to reuse connections
185+
186+
Some databases - such as Sybase or SQL Anywhere - may have issues with stale connections, timing out between scheduled runs and never reconnecting.
187+
188+
To ensure connections are valid before queries are executed, enable <<plugins-{type}s-{plugin}-jdbc_validate_connection>> and set <<plugins-{type}s-{plugin}-jdbc_validation_timeout>> to a shorter interval than the <<plugins-{type}s-{plugin}-schedule>>.
189+
190+
[source,ruby]
191+
---------------------------------------------------------------------------------------------------
192+
input {
193+
jdbc {
194+
schedule => "* * * * *" # run every minute
195+
jdbc_validate_connection => true
196+
jdbc_validation_timeout => 50 # 50 seconds
197+
}
198+
}
199+
---------------------------------------------------------------------------------------------------
200+
201+
179202

180203
[id="plugins-{type}s-{plugin}-options"]
181204
==== Jdbc Input Configuration Options

logstash-integration-jdbc.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |s|
22
s.name = 'logstash-integration-jdbc'
3-
s.version = '5.4.9'
3+
s.version = '5.4.10'
44
s.licenses = ['Apache License (2.0)']
55
s.summary = "Integration with JDBC - input and filter plugins"
66
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"

0 commit comments

Comments
 (0)