-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fir 37710 jdbc validate connection against system engine #473
Fir 37710 jdbc validate connection against system engine #473
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of small points, otherwise looks good.
} | ||
var propertiesBuilder = fireboltProperties.toBuilder().runtimeAdditionalProperties(runtimeProperties); | ||
if (getSessionProperties().isValidateOnSystemEngine()) { | ||
propertiesBuilder.compress(false).engine(null).systemEngine(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we have compress(false)
defined here? Is there a special behaviour on system engine?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For system engine we automatically disable compress in JDBC.
https://github.com/firebolt-db/jdbc/blob/master/src/main/java/com/firebolt/jdbc/connection/settings/FireboltProperties.java#L97
I'm not sure of the reasons, all that I can say is that system engine doesn't work with compres as tests have shown. We receive an expected end of stream, and I failed ot understand the reason behind it
src/main/java/com/firebolt/jdbc/connection/settings/FireboltSessionProperty.java
Outdated
Show resolved
Hide resolved
|
Improvements for isValid method:
validate_on_system_engine
, which forces a connection to run isValid on a system engine even if it's connected to a user engine