-
Notifications
You must be signed in to change notification settings - Fork 1
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
Ensure all connections (esp. JDBC) are closed on failure #151
Comments
In my impression the factory is also used for caching and reusing a connection with the intention to improve performance by not creating a new connection every time. |
Alignment with @kaklakariada:
|
Couple of issues in connection management have found:
|
But before fixing all this, hive-virtual-schema has to be updated to the latest libraries version |
Optimizing connection establishment doesn't have much sense, as we're restarting whole java process on every request (at least jar file is being reloaded from bucketfs) |
Ticket mentioned as "IntRef" reported that when user cancels an SQL query in Exasol database the resulting Hive query in VSHIVE does not get canceled.
The current ticket therefore requests to inspect and if possible to improve the connection handling in VSCJDBC.
See also ticket exasol/hive-virtual-schema#39 for improved connection handling in VSHIVE.
If possible then VSCJDBC should ensure that especially in the case of an exception VSCJDBC closes all connections.
Acceptance criteria
See for example ImportIntoTemporaryTableQueryRewriter.java#L75
Tasks
The text was updated successfully, but these errors were encountered: