-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question on Use of Use_Column_Value And Timestamps #273
Comments
@MorrieAtElastic - I agree this is confusing, and I think this may be a documentation issue. There are three states that may be recorded as the
The documentation for
Which is misleading since "timestamp" alludes to the tracking column type, but it really means the incremental DB column (numeric or timestamp) rather then timestamp of last time the query ran. I think we should update the documentation for
@guyboertje - keep me honest on how these values work. |
I - and the customer who identified this problem as well - agree: this needs to be better documented. Thanks for the quick turnaround. |
I think the problem is the word
Either way I agree that the interplay between these three or four settings warrants its own section in the main docs. |
Also it has been reported as a point of confusion for the tracking_column_type not needing to be set due to the overloading of the term. We should fix the document holistically to disambiguate. cc @karenzone EDIT: corrected statement. |
Reworked the topic (https://www.elastic.co/guide/en/logstash/current/plugins-inputs-jdbc.html) to clarify use of USE_COLUMN_VALUE (#277). |
Please post all product and debugging questions on our forum. Your questions will reach our wider community members there, and if we confirm that there is a bug, then we can open a new issue here.
For all general issues, please provide the following details for fast resolution:
Version: 5.6.4 Customer; 5.6.5 reproduced in house against Oracle V12
Operating System: RHEL
Config File (if you have sensitive info, please remove it):(included below)
Sample Data: n/a
Steps to Reproduce:
When using the JDBC Plugin to query Oracle databases, it seems that USE_COLUMN_VALUE must be set to true even when using timestamp fields as the tracking column. This is inconsistent and completely opposite to the documented discussion of USE_COLUMN_VALUE which states that it should be used only when the tracking column is not a timestamp column. If USE_COLUMN_VALUE is set to false, timestamp comparisons do not work correctly and documents which should be issued to elasticsearch are not. See https://www.elastic.co/guide/en/logstash/5.6/plugins-inputs-jdbc.html#plugins-inputs-jdbc-use_column_value for the documented definition of USE_COLUMN_VALUE ("set to true when tracking column is not a timestamp").
A customer discovered this, provided a test case which I have reproduced his results; the problem can be demonstrated without connecting to an Elasticsearch cluster, just by using the rubydebug output.
Test configuration file:
To Reproduce
what you should observe is that documents having the "nocolumnvalue" tag (generated where use_column_value is false) will be issued once per run (wrong) while documents having the "columnvalue" tag (generated where use_column_value is true) will be output continuously (correct behavior).
The text was updated successfully, but these errors were encountered: