Skip to content

Conversation

@absurdfarce
Copy link
Contributor

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
}

if (cassandra_version >= "4.0.0") {
if (cassandra_version >= "4.0.0" && !is_dse()) {
Copy link
Contributor 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
Contributor 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.

Cluster cluster = dse::Cluster::build()
.with_plaintext_authenticator(username, password)
.with_contact_points(contact_points_)
.with_hostname_resolution(true)
Copy link
Contributor 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