Skip to content

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

Merged
merged 5 commits into from
Jul 29, 2023

Conversation

absurdfarce
Copy link
Collaborator

Along with some other miscellaneous fixes as well:

  • Remove beta protocol support from the CLI options to the integration test as well as the test cluster itself
  • Clean up some error messages

@absurdfarce absurdfarce requested a review from weideng1 July 28, 2023 23:01
@@ -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()) {
Copy link
Collaborator Author

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;
}

Copy link
Collaborator Author

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)
Copy link
Collaborator Author

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.

@weideng1 weideng1 merged commit 292efe9 into master Jul 29, 2023
@weideng1 weideng1 deleted the cpp966 branch July 29, 2023 01:01
weideng1 pushed a commit that referenced this pull request Jul 29, 2023
… 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
weideng1 pushed a commit that referenced this pull request Aug 1, 2023
… 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants