Skip to content

Commit 55d5e0b

Browse files
authored
Merge pull request #215 from riptano/1.7.0_prep
Release prep 1.7.0
2 parents 5285c2a + be27528 commit 55d5e0b

File tree

14 files changed

+109
-12
lines changed

14 files changed

+109
-12
lines changed

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
1.7.0
2+
===========
3+
4+
Features
5+
--------
6+
* [CPP-108] Add tracing support
7+
* [CPP-402] Add support for host event callback
8+
* [CPP-524] Add client configuration information to STARTUP message
9+
* [CPP-597] Provide a means of sending query to a specific node to facilitate virtual table queries
10+
11+
Bug Fixes
12+
--------
13+
* [CPP-632] It's possible for RequestProcessor to miss add/remove event during initialization
14+
* [CPP-701] Don't use Host::is_up() flag inside of load balancing policies
15+
* [CPP-711] Memory leak in `WaitForHandler`/`SchemaChangeHandler` (reference cycle)
16+
17+
Other
18+
--------
19+
* [CPP-183] Concurrent Control Connection Establishment
20+
* [CPP-405] Namespace rapidjson to avoid conflicts with other rapidjson usages
21+
* [CPP-413] Enable Client Timestamps by Default
22+
* [CPP-510] Try all contact points until one succeeds
23+
* [CPP-585] Deprecate DowngradingConsistencyRetryPolicy
24+
* [CPP-686] Pull in the latest rapidjson changes from master
25+
* [CPP-688] Use plugin architecture for protocol version handling
26+
127
1.6.0
228
===========
329

cpp-driver/CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
2.11.0
2+
===========
3+
4+
Features
5+
--------
6+
* [CPP-108] Add tracing support
7+
* [CPP-402] Add support for host event callback
8+
* [CPP-524] Add client configuration information to STARTUP message
9+
* [CPP-597] Provide a means of sending query to a specific node to facilitate virtual table queries
10+
11+
Bug Fixes
12+
--------
13+
* [CPP-632] It's possible for RequestProcessor to miss add/remove event during initialization
14+
* [CPP-701] Don't use Host::is_up() flag inside of load balancing policies
15+
* [CPP-711] Memory leak in `WaitForHandler`/`SchemaChangeHandler` (reference cycle)
16+
17+
Other
18+
--------
19+
* [CPP-183] Concurrent Control Connection Establishment
20+
* [CPP-405] Namespace rapidjson to avoid conflicts with other rapidjson usages
21+
* [CPP-413] Enable Client Timestamps by Default
22+
* [CPP-510] Try all contact points until one succeeds
23+
* [CPP-585] Deprecate DowngradingConsistencyRetryPolicy
24+
* [CPP-686] Pull in the latest rapidjson changes from master
25+
* [CPP-688] Use plugin architecture for protocol version handling
26+
* Added ${CMAKE_LIBRARY_ARCHITECTURE} path suffix for libuv search
27+
128
2.10.0
229
===========
330

cpp-driver/cmake/modules/FindLibuv.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ endif()
5353
find_library(LIBUV_LIBRARY
5454
NAMES ${_LIBUV_NAMES}
5555
${_LIBUV_ROOT_HINTS_AND_PATHS}
56-
PATH_SUFFIXES lib
56+
PATH_SUFFIXES lib lib/${CMAKE_LIBRARY_ARCHITECTURE}
5757
NO_DEFAULT_PATH)
5858

5959
# Extract version number if possible.

cpp-driver/docs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
title: DataStax C/C++ Driver
22
summary: DataStax C++ Driver for Apache Cassandra Documentation
33
homepage: http://datastax.github.io/cpp-driver/
4+
swiftype_drivers: cppdrivers
45
sections:
56
- title: Features
67
prefix: /topics

cpp-driver/gtests/src/integration/integration.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Integration::Integration()
5555
, is_ccm_start_node_individually_(false)
5656
, is_session_requested_(true)
5757
, is_test_chaotic_(false)
58-
, is_beta_protocol_(true)
58+
, is_beta_protocol_(Options::is_beta_protocol())
5959
, protocol_version_(CASS_HIGHEST_SUPPORTED_PROTOCOL_VERSION)
6060
, create_keyspace_query_("")
6161
, start_time_(0ull) {

cpp-driver/gtests/src/integration/options.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ std::string Options::public_key_ = "public.key";
4848
std::string Options::private_key_ = "private.key";
4949
bool Options::is_verbose_ccm_ = false;
5050
bool Options::is_verbose_integration_ = false;
51+
bool Options::is_beta_protocol_ = true;
5152

5253
// Static initialization is not guaranteed for the following types
5354
CCM::DseCredentialsType Options::dse_credentials_type_;
@@ -181,6 +182,8 @@ bool Options::initialize(int argc, char* argv[]) {
181182
is_verbose_ccm_ = true;
182183
is_verbose_integration_ = true;
183184
}
185+
} else if (key == "--disable-beta-protocol") {
186+
is_beta_protocol_ = false;
184187
}
185188
#ifdef CASS_USE_LIBSSH2
186189
else if (key == "--authentication") {
@@ -355,6 +358,9 @@ void Options::print_help() {
355358
<< std::endl;
356359
std::cout << " --verbose(=ccm,integration)" << std::endl << " "
357360
<< "Enable verbose output for component(s)." << std::endl;
361+
std::cout << " --disable-beta-protocol" << std::endl << " "
362+
<< "Disable beta protocol use by default." << std::endl << " "
363+
<< "NOTE: Individual tests may override this setting." << std::endl;
358364
std::cout << std::endl;
359365
}
360366

@@ -533,6 +539,10 @@ bool Options::is_verbose_integration() {
533539
return is_verbose_integration_;
534540
}
535541

542+
bool Options::is_beta_protocol() {
543+
return is_beta_protocol_;
544+
}
545+
536546
Options::Options() {
537547
}
538548

cpp-driver/gtests/src/integration/options.hpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,13 @@ class Options {
208208
* otherwise
209209
*/
210210
static bool is_verbose_integration();
211+
/**
212+
* Flag to determine if beta protocol should be enabled or not; should only
213+
* pertain to the default setting.
214+
*
215+
* @return True if beta protocol should be enabled; false otherwise
216+
*/
217+
static bool is_beta_protocol();
211218
/**
212219
* Get a CCM instance based on the options
213220
*
@@ -325,6 +332,13 @@ class Options {
325332
* Flag to determine if verbose integration output should enabled
326333
*/
327334
static bool is_verbose_integration_;
335+
/**
336+
* Flag to determine if beta protocol should be enabled or not; should only
337+
* pertain to the default setting.
338+
*
339+
* NOTE: Individual tests can still override this.
340+
*/
341+
static bool is_beta_protocol_;
328342

329343
/**
330344
* Hidden default constructor

cpp-driver/gtests/src/integration/tests/test_auth.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ CASSANDRA_INTEGRATION_TEST_F(AuthenticationTests, InvalidNullPasswordCredentials
182182
*/
183183
Session session = connect_using_credentials(i, "user", NULL);
184184
ASSERT_EQ(session.connect_error_code(), CASS_ERROR_SERVER_BAD_CREDENTIALS);
185-
ASSERT_EQ(logger_.count(), 1u);
185+
ASSERT_GE(logger_.count(), 1u);
186186
logger_.reset_count();
187187
}
188188
}
@@ -219,7 +219,7 @@ CASSANDRA_INTEGRATION_TEST_F(AuthenticationTests, BadCredentials) {
219219
*/
220220
Session session = connect_using_credentials(i, "invalid", "invalid");
221221
ASSERT_EQ(session.connect_error_code(), CASS_ERROR_SERVER_BAD_CREDENTIALS);
222-
ASSERT_EQ(logger_.count(), 1u);
222+
ASSERT_GE(logger_.count(), 1u);
223223
logger_.reset_count();
224224
}
225225
}
@@ -258,5 +258,5 @@ CASSANDRA_INTEGRATION_TEST_F(AuthenticationTests, AuthenticatorSetErrorNull) {
258258
Session session = connect_using_credentials(CASS_HIGHEST_SUPPORTED_PROTOCOL_VERSION,
259259
"invalid", "invalid");
260260
ASSERT_EQ(session.connect_error_code(), CASS_ERROR_SERVER_BAD_CREDENTIALS);
261-
ASSERT_EQ(logger_.count(), 1u);
261+
ASSERT_GE(logger_.count(), 1u);
262262
}

cpp-driver/gtests/src/integration/tests/test_basics.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,11 @@ CASSANDRA_INTEGRATION_TEST_F(BasicsTests, NoCompactEnabledConnection) {
340340
CHECK_VERSION(3.11.2);
341341
CCM::CassVersion cass_version = server_version_;
342342
if (Options::is_dse()) {
343+
if (server_version_ >= "6.0.0") {
344+
SKIP_TEST("Unsupported for DataStax Enterprise Version " << server_version_.to_string()
345+
<< ": Apache Cassandra server version must be used and less than"
346+
<< " v4.0.0 and either 3.0.16+ or 3.11.2+ in order to execute");
347+
}
343348
cass_version = static_cast<CCM::DseVersion>(cass_version).get_cass_version();
344349
}
345350
if (cass_version >= "4.0.0") {

cpp-driver/include/cassandra.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
*/
5353

5454
#define CASS_VERSION_MAJOR 2
55-
#define CASS_VERSION_MINOR 10
55+
#define CASS_VERSION_MINOR 11
5656
#define CASS_VERSION_PATCH 0
5757
#define CASS_VERSION_SUFFIX ""
5858

0 commit comments

Comments
 (0)