-
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
Changes from all commits
9924a9e
3ebea89
b18f40e
010a3f7
663d39c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,19 +80,6 @@ class Cluster : public Object<CassCluster, cass_cluster_free> { | |
return *this; | ||
} | ||
|
||
/** | ||
* Use the newest beta protocol version | ||
* | ||
* @param enable True if beta protocol should be enable; false the highest | ||
* non-beta protocol will be used (unless set) (default: false) | ||
* @return Cluster object | ||
*/ | ||
Cluster& with_beta_protocol(bool enable = false) { | ||
EXPECT_EQ(CASS_OK, cass_cluster_set_use_beta_protocol_version( | ||
get(), (enable == true ? cass_true : cass_false))); | ||
return *this; | ||
} | ||
|
||
/** | ||
* Sets the timeout for connecting to a node | ||
* | ||
|
@@ -206,22 +193,6 @@ class Cluster : public Object<CassCluster, cass_cluster_free> { | |
return *this; | ||
} | ||
|
||
/** | ||
* Enable/Disable the use of hostname resolution | ||
* | ||
* This is useful for authentication (Kerberos) or encryption (SSL) | ||
* services that require a valid hostname for verification. | ||
* | ||
* @param enable True if hostname resolution should be enabled; false | ||
* otherwise (default: true) | ||
* @return Cluster object | ||
*/ | ||
Cluster& with_hostname_resolution(bool enable = true) { | ||
EXPECT_EQ(CASS_OK, cass_cluster_set_use_hostname_resolution( | ||
get(), (enable == true ? cass_true : cass_false))); | ||
return *this; | ||
} | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
/** | ||
* Sets the number of I/O threads. This is the number of threads that will | ||
* handle query requests | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -177,7 +177,6 @@ class AuthenticationTest : public DseIntegration { | |
Cluster cluster = dse::Cluster::build() | ||
.with_gssapi_authenticator("dse", principal) | ||
.with_contact_points(contact_points_) | ||
.with_hostname_resolution(true) | ||
.with_schema_metadata(false); | ||
Session session = cluster.connect(); | ||
|
||
|
@@ -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 commentThe 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. |
||
.with_schema_metadata(false); | ||
Session session = cluster.connect(); | ||
|
||
|
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.