-
Notifications
You must be signed in to change notification settings - Fork 286
CPP-966 Compilation warnings after cass_set_use_hostname_resolution() marked as deprecated #551
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
Conversation
… Necessary to get newer versions of DSE running for tests.
…as well as any callers
…er version distinct in order to avoid confusion
@@ -1491,7 +1491,7 @@ CCM::Bridge::generate_create_updateconf_command(CassVersion cassandra_version) { | |||
updateconf_command.push_back("enable_scripted_user_defined_functions:true"); | |||
} | |||
|
|||
if (cassandra_version >= "4.0.0") { | |||
if (cassandra_version >= "4.0.0" && !is_dse()) { |
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.
A small fix to get DSE working for integration tests. IIRC @weideng1 has something similar to this in another PR.
get(), (enable == true ? cass_true : cass_false))); | ||
return *this; | ||
} | ||
|
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.
The heart of the matter. The use of this function was the immediate cause of the slew of deprecated warnings when building the integration tests.
@@ -203,7 +202,6 @@ class AuthenticationTest : public DseIntegration { | |||
Cluster cluster = dse::Cluster::build() | |||
.with_plaintext_authenticator(username, password) | |||
.with_contact_points(contact_points_) | |||
.with_hostname_resolution(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.
These two usages are the only places where with_hostname_resolution() was actually used. Manually confirmed this test passes for all supported versions of DSE after this change.
… marked as deprecated (#551) * Change ccm updateconf logic to not enable MV and UDF in the DSE case. Necessary to get newer versions of DSE running for tests. * Remove the offending function from the (test) cluster building logic as well as any callers * Remove beta protocol support from CLI options exposed via the integration tests * Remove beta protocol support from test cluster object as well * A drive-by fix: make the error messages for protocol version vs. server version distinct in order to avoid confusion
… marked as deprecated (#551) * Change ccm updateconf logic to not enable MV and UDF in the DSE case. Necessary to get newer versions of DSE running for tests. * Remove the offending function from the (test) cluster building logic as well as any callers * Remove beta protocol support from CLI options exposed via the integration tests * Remove beta protocol support from test cluster object as well * A drive-by fix: make the error messages for protocol version vs. server version distinct in order to avoid confusion
Along with some other miscellaneous fixes as well: