-
Notifications
You must be signed in to change notification settings - Fork 319
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
Span isn't closed if JDBC implementation errors on the getUpdateCount method #1006
Comments
Thanks a lot for this nice bug report @HoveringHalibut ! I agree it's an edge case, but any faulty implementation would produce a span that is not closed. Regarding logging of this error though, given it's likely at every statement execution I'd rather keep it silent (end-user can't really do anything about it anyway), or log it at debug level. Also, technically this kind of error can happen when calling any part of the JDBC driver, not just this method. |
Might make sense to not call this method again after it threw an exception.
…On Fri 24. Jan 2020 at 09:39 SylvainJuge ***@***.***> wrote:
Thanks a lot for this nice bug report @HoveringHalibut
<https://github.com/HoveringHalibut> !
I agree it's an edge case, but any faulty implementation would produce a
span that is not closed.
Actually having JDBC over RMI is quite common on some application servers
like Weblogic that use it to expose JDBC connection pools to deployed web
applications.
Regarding logging of this error though, given it's likely at every
statement execution I'd rather keep it silent (end-user can't really do
anything about it anyway), or log it at debug level.
Also, technically this kind of error can happen when calling any part of
the JDBC driver, not just this method.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1006?email_source=notifications&email_token=AAQQGCCAPT6GWYTHINSJPPDQ7KSK3A5CNFSM4KLAXOSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ2DEYI#issuecomment-578040417>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQQGCHHEDOFL2C2NNVBFBDQ7KSK3ANCNFSM4KLAXOSA>
.
|
@HoveringHalibut please download and test the relevant snapshot build artefact of the proposed fix and verify that if fixes the problem. |
@eyalkoren Thanks for the quick turnaround on this. I'll run it through our test environment tomorrow. |
@HoveringHalibut Did you get the chance to verify the fix? |
Describe the bug
The JDBC plugin throws an error and doesn't deactivate and end the span if the JDBC implementation errors on the getUpdateCount method.
This admittedly is an edge case where my company's application uses a partial implementation of the JDBC API in RMI connections between services. It doesn't include the getUpdateCount method currently.
Steps to reproduce
Expected behavior
An error should be logged and the span should be closed.
Debug logs
Click to expand
The text was updated successfully, but these errors were encountered: