Skip to content

Commit 08c85b3

Browse files
authored
Merge pull request #259 from riptano/1.9.0_release_prep
DSE v1.9.0 release preparations
2 parents 9ef1b03 + b996200 commit 08c85b3

24 files changed

+109
-54
lines changed

CHANGELOG.md

+26-9
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,40 @@
1+
1.9.0
2+
===========
3+
4+
Features
5+
--------
6+
* [CPP-745] Exponential reconnection policy with jitter
7+
* [CPP-769] Use `clang-format` to fix up formatting
8+
* [CPP-775] Add `clang-format` to Windows
9+
10+
Other
11+
--------
12+
* [CPP-743] Move internal components from `namespace cass` to `namespace datastax::internal`
13+
* [CPP-764] Rename namespace from `cass` to `datastax`
14+
* [CPP-766] Allow RPM packaging script to build RPM packages for Amazon Linux
15+
* [CPP-770] Fix header files include guard (\_\_CASS_XXX to DATASTAX_XXX)
16+
* [CPP-772] Remove per cpp file LOG_FILE attribute to speed up Windows builds
17+
118
1.8.0
219
===========
320

421
Features
522
--------
6-
[CPP-722] Insightful monitoring (Insights) startup message
7-
[CPP-723] Insightful monitoring (Insights) status event message
8-
[CPP-741] Allow user to configure client ID
9-
[CPP-751] Call host listener callback for the initial set of hosts
23+
* [CPP-722] Insightful monitoring (Insights) startup message
24+
* [CPP-723] Insightful monitoring (Insights) status event message
25+
* [CPP-741] Allow user to configure client ID
26+
* [CPP-751] Call host listener callback for the initial set of hosts
1027

1128
Bug Fixes
1229
--------
13-
[CPP-755] UDT metadata not being properly populated/updated
30+
* [CPP-755] UDT metadata not being properly populated/updated
1431

1532
Other
1633
--------
17-
[CPP-705] Deprecate DC-aware multi-DC settings (`used_hosts_per_remote_dc`
18-
and `allowRemoteDCsForLocalConsistencyLevel `)
19-
[CPP-720] Streamline custom allocator
20-
[CPP-752] Add connection count to Host
34+
* [CPP-705] Deprecate DC-aware multi-DC settings (`used_hosts_per_remote_dc`
35+
and `allowRemoteDCsForLocalConsistencyLevel `)
36+
* [CPP-720] Streamline custom allocator
37+
* [CPP-752] Add connection count to Host
2138

2239
1.7.0
2340
===========

appveyor.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ environment:
4141
APPVEYOR_IGNORE_COMMIT_FILTERING_ON_TAG: true
4242
DRIVER_TYPE: DSE
4343
BOOST_VERSION: 1.69.0
44-
LIBSSH2_VERSION: 1.8.2
45-
LIBUV_VERSION: 1.28.0
46-
OPENSSL_1_0_VERSION: 1.0.2r
47-
OPENSSL_1_1_VERSION: 1.1.1b
44+
LIBSSH2_VERSION: 1.9.0
45+
LIBUV_VERSION: 1.29.1
46+
OPENSSL_1_0_VERSION: 1.0.2s
47+
OPENSSL_1_1_VERSION: 1.1.1c
4848
matrix:
4949
- CMAKE_GENERATOR: Visual Studio 10 2010
5050
OPENSSL_MAJOR_MINOR: 1.0

build.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ os:
1919
- centos/7-64/cpp
2020
- osx/high-sierra
2121
env:
22-
LIBUV_VERSION: 1.28.0
22+
LIBUV_VERSION: 1.29.1
2323
build:
2424
- script: |
2525
. ./cpp-driver/.build.sh

cpp-driver/CHANGELOG.md

+29-5
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,43 @@
1+
2.13.0
2+
===========
3+
4+
Features
5+
--------
6+
* [CPP-745] Exponential reconnection policy with jitter
7+
* [CPP-769] Use `clang-format` to fix up formatting
8+
* [CPP-775] Add `clang-format` to Windows
9+
10+
Other
11+
--------
12+
* [CPP-743] Move internal components from `namespace cass` to `namespace datastax::internal`
13+
* [CPP-764] Rename namespace from `cass` to `datastax`
14+
* [CPP-766] Allow RPM packaging script to build RPM packages for Amazon Linux
15+
* [CPP-770] Fix header files include guard (\_\_CASS_XXX to DATASTAX_XXX)
16+
* [CPP-772] Remove per cpp file LOG_FILE attribute to speed up Windows builds
17+
18+
Community
19+
--------
20+
* Fixed the location of the '[in]' information for Doxygen. (AlexisWilke)
21+
* Added header subdirectory installation capability. (accelerated)
22+
* Changed pkg_config templates to use the library variable name. (accelerated)
23+
* Fix generation of shlib deps file for debian packages. (jirkasilhan)
24+
125
2.12.0
226
===========
327

428
Features
529
--------
6-
[CPP-751] Call host listener callback for the initial set of hosts
30+
* [CPP-751] Call host listener callback for the initial set of hosts
731

832
Bug Fixes
933
--------
10-
[CPP-755] UDT metadata not being properly populated/updated
34+
* [CPP-755] UDT metadata not being properly populated/updated
1135

1236
Other
1337
--------
14-
[CPP-705] Deprecate DC-aware multi-DC settings (`used_hosts_per_remote_dc`
15-
and `allowRemoteDCsForLocalConsistencyLevel `)
16-
[CPP-720] Streamline custom allocator
38+
* [CPP-705] Deprecate DC-aware multi-DC settings (`used_hosts_per_remote_dc`
39+
and `allowRemoteDCsForLocalConsistencyLevel `)
40+
* [CPP-720] Streamline custom allocator
1741

1842
2.11.0
1943
===========

cpp-driver/appveyor.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ environment:
4040
APPVEYOR_IGNORE_COMMIT_FILTERING_ON_TAG: true
4141
DRIVER_TYPE: CASS
4242
BOOST_VERSION: 1.69.0
43-
LIBSSH2_VERSION: 1.8.2
44-
LIBUV_VERSION: 1.28.0
45-
OPENSSL_1_0_VERSION: 1.0.2r
46-
OPENSSL_1_1_VERSION: 1.1.1b
43+
LIBSSH2_VERSION: 1.9.0
44+
LIBUV_VERSION: 1.29.1
45+
OPENSSL_1_0_VERSION: 1.0.2s
46+
OPENSSL_1_1_VERSION: 1.1.1c
4747
matrix:
4848
- CMAKE_GENERATOR: Visual Studio 10 2010
4949
OPENSSL_MAJOR_MINOR: 1.0

cpp-driver/build.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ os:
1919
- centos/7-64/cpp
2020
- osx/high-sierra
2121
env:
22-
LIBUV_VERSION: 1.28.0
22+
LIBUV_VERSION: 1.29.1
2323
build:
2424
- script: |
2525
. .build.sh

cpp-driver/cmake/modules/ExternalProject-OpenSSL.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ endif()
2121
# OpenSSL related CMake options
2222
option(OPENSSL_VERSION "OpenSSL version to build and install")
2323
if(NOT OPENSSL_VERSION)
24-
# TODO: Should we default to OpenSSL 1.1 (e.g. 1.1.1b)?
25-
set(OPENSSL_VERSION "1.0.2r")
24+
# TODO: Should we default to OpenSSL 1.1 (e.g. 1.1.1c)?
25+
set(OPENSSL_VERSION "1.0.2s")
2626
endif()
2727
option(OPENSSL_INSTALL_PREFIX "OpenSSL installation prefix location")
2828
if(CASS_USE_ZLIB)

cpp-driver/cmake/modules/ExternalProject-libssh2.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if(NOT LIBSSH2_INSTALL_PREFIX)
2222
endif()
2323
option(LIBSSH2_VERSION "libssh2 version to build and install")
2424
if(NOT LIBSSH2_VERSION)
25-
set(LIBSSH2_VERSION "1.8.2")
25+
set(LIBSSH2_VERSION "1.9.0")
2626
endif()
2727
set(LIBSSH2_VERSION ${LIBSSH2_VERSION} CACHE STRING "libssh2 version to build and install" FORCE)
2828

cpp-driver/cmake/modules/ExternalProject-libuv.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if(NOT LIBUV_INSTALL_PREFIX)
2222
endif()
2323
option(LIBUV_VERSION "libuv version to build and install")
2424
if(NOT LIBUV_VERSION)
25-
set(LIBUV_VERSION "1.28.0")
25+
set(LIBUV_VERSION "1.29.1")
2626
endif()
2727
set(LIBUV_VERSION ${LIBUV_VERSION} CACHE STRING "libuv version to build and install" FORCE)
2828

cpp-driver/docs.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ rules:
5757
use_path_nav_files_only: true
5858

5959
versions:
60+
- name: "2.13"
61+
ref: 2.13.0
6062
- name: "2.12"
6163
ref: 2.12.0
6264
- name: "2.11"

cpp-driver/examples/concurrent_executions/concurrent_executions.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ void insert_into_concurrent_executions() {
122122
cass_statement_set_is_idempotent(statement, cass_true);
123123
cass_uuid_gen_random(uuid_gen, &uuid);
124124
cass_statement_bind_uuid_by_name(statement, "id", uuid);
125-
snprintf(value_buffer, sizeof(value_buffer), "%d", i);
125+
sprintf(value_buffer, "%d", i);
126126
cass_statement_bind_string_by_name(statement, "value", value_buffer);
127127

128128
futures[i] = cass_session_execute(session, statement);

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
#include <algorithm>
2424
#include <iostream>
2525

26-
#define DEFAULT_OPTIONS_CASSSANDRA_VERSION CCM::CassVersion("3.11.3")
27-
#define DEFAULT_OPTIONS_DSE_VERSION CCM::DseVersion("6.0.4")
26+
#define DEFAULT_OPTIONS_CASSSANDRA_VERSION CCM::CassVersion("3.11.4")
27+
#define DEFAULT_OPTIONS_DSE_VERSION CCM::DseVersion("6.0.8")
2828

2929
// Initialize the defaults for all the options
3030
bool Options::is_initialized_ = false;

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ TEST(ClusterTest, SetLoadBalanceDcAwareNullLocalDc) {
3939
TEST(ClusterTest, ExponentialReconnectionPolicyBadParameters) {
4040
test::driver::Cluster cluster;
4141

42-
// Base delay cannot be zero
42+
// Base delay must be greater than 1
4343
EXPECT_EQ(CASS_ERROR_LIB_BAD_PARAMS, cass_cluster_set_exponential_reconnect(cluster.get(), 0, 1));
44-
// Max delay cannot be zero
44+
// Max delay must be greater than 1
4545
EXPECT_EQ(CASS_ERROR_LIB_BAD_PARAMS, cass_cluster_set_exponential_reconnect(cluster.get(), 1, 0));
4646
// Base delay cannot be greater than max delay
47-
EXPECT_EQ(CASS_ERROR_LIB_BAD_PARAMS, cass_cluster_set_exponential_reconnect(cluster.get(), 2, 1));
47+
EXPECT_EQ(CASS_ERROR_LIB_BAD_PARAMS, cass_cluster_set_exponential_reconnect(cluster.get(), 3, 2));
4848
}

cpp-driver/gtests/src/unit/tests/test_cluster.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -952,8 +952,8 @@ TEST_F(ClusterUnitTest, ReconnectionPolicy) {
952952

953953
ClusterUnitTestReconnectionPolicy::Ptr policy(
954954
static_cast<ClusterUnitTestReconnectionPolicy::Ptr>(settings.reconnection_policy));
955-
EXPECT_EQ(2, policy->reconnection_schedule_count());
956-
EXPECT_EQ(2, policy->destroyed_reconnection_schedule_count());
955+
EXPECT_EQ(2u, policy->reconnection_schedule_count());
956+
EXPECT_EQ(2u, policy->destroyed_reconnection_schedule_count());
957957
EXPECT_GE(policy->scheduled_delay_count(), 2u);
958-
EXPECT_EQ(3, mock_cluster.connection_attempts(1)); // Includes initial connection attempt
958+
EXPECT_EQ(3u, mock_cluster.connection_attempts(1)); // Includes initial connection attempt
959959
}

cpp-driver/gtests/src/unit/tests/test_pool.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ TEST_F(PoolUnitTest, ReconnectionPolicy) {
772772
settings.reconnection_policy.reset(new PoolUnitTestReconnectionPolicy());
773773
initializer->with_settings(settings)->with_listener(listener.get())->initialize(loop(), hosts);
774774
uv_run(loop(), UV_RUN_DEFAULT);
775-
EXPECT_EQ(listener_status.count(ListenerStatus::UP), 2) << listener_status.results();
775+
EXPECT_EQ(listener_status.count(ListenerStatus::UP), 2u) << listener_status.results();
776776

777777
// Stop and start node 1 twice engaging the reconnection policy
778778
listener->reset(&reconnect_listener_status);
@@ -787,11 +787,11 @@ TEST_F(PoolUnitTest, ReconnectionPolicy) {
787787

788788
PoolUnitTestReconnectionPolicy::Ptr policy(
789789
static_cast<PoolUnitTestReconnectionPolicy::Ptr>(settings.reconnection_policy));
790-
EXPECT_EQ(2, policy->reconnection_schedule_count());
791-
EXPECT_EQ(2, policy->destroyed_reconnection_schedule_count());
792-
EXPECT_EQ(2, policy->scheduled_delay_count());
793-
EXPECT_EQ(3, cluster.connection_attempts(1)); // Includes initial connection attempt
794-
EXPECT_EQ(1, cluster.connection_attempts(2));
790+
EXPECT_EQ(2u, policy->reconnection_schedule_count());
791+
EXPECT_EQ(2u, policy->destroyed_reconnection_schedule_count());
792+
EXPECT_EQ(2u, policy->scheduled_delay_count());
793+
EXPECT_EQ(3u, cluster.connection_attempts(1)); // Includes initial connection attempt
794+
EXPECT_EQ(1u, cluster.connection_attempts(2));
795795
}
796796

797797
TEST_F(PoolUnitTest, PartialReconnect) {

cpp-driver/gtests/src/unit/tests/test_protocol_version.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include "cassandra.h"
2222
#include "protocol.hpp"
2323

24-
using cass::ProtocolVersion;
24+
using datastax::internal::core::ProtocolVersion;
2525

2626
class ProtocolVersionUnitTest : public Unit {};
2727

cpp-driver/include/cassandra.h

+1-1
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 12
55+
#define CASS_VERSION_MINOR 13
5656
#define CASS_VERSION_PATCH 0
5757
#define CASS_VERSION_SUFFIX ""
5858

cpp-driver/src/monitor_reporting.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,14 @@
1616

1717
#include "monitor_reporting.hpp"
1818

19+
using namespace datastax;
1920
using namespace datastax::internal::core;
2021

22+
namespace datastax { namespace internal { namespace core {
23+
2124
MonitorReporting* create_monitor_reporting(const String& client_id, const String& session_id,
2225
const Config& config) {
2326
return new NopMonitorReporting();
2427
}
28+
29+
}}} // namespace datastax::internal::core

cpp-driver/src/protocol.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#define DSE_PROTOCOL_VERSION_BIT 0x40
2222
#define DSE_PROTOCOL_VERSION_MASK 0x3F
2323

24+
using namespace datastax;
2425
using namespace datastax::internal::core;
2526

2627
ProtocolVersion::ProtocolVersion()

cpp-driver/test/ccm_bridge/data/config.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#
1414
# Uncomment to specify Cassandra version
1515
##
16-
#CASSANDRA_VERSION=3.11.3
16+
#CASSANDRA_VERSION=3.11.4
1717
##
1818
# Flag to determine if Cassandra/DSE version should be obtained from ASF/GitHub
1919
#
@@ -68,7 +68,7 @@
6868
#
6969
# Uncomment to specify DSE version
7070
##
71-
#DSE_VERSION=6.0.4
71+
#DSE_VERSION=6.0.8
7272
##
7373
# CCM DSE Credentials Type (username_password|ini_file)
7474
#

cpp-driver/test/ccm_bridge/src/bridge.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ typedef struct _LIBSSH2_CHANNEL LIBSSH2_CHANNEL;
4444
#endif
4545

4646
// Default values
47-
#define DEFAULT_CASSANDRA_VERSION CassVersion("3.11.3")
48-
#define DEFAULT_DSE_VERSION DseVersion("6.0.4")
47+
#define DEFAULT_CASSANDRA_VERSION CassVersion("3.11.4")
48+
#define DEFAULT_DSE_VERSION DseVersion("6.0.8")
4949
#define DEFAULT_USE_GIT false
5050
#define DEFAULT_USE_INSTALL_DIR false
5151
#define DEFAULT_USE_DSE false

cpp-driver/test/ccm_bridge/src/cass_version.hpp

+8-4
Original file line numberDiff line numberDiff line change
@@ -472,13 +472,17 @@ class DseVersion : public CassVersion {
472472
} else if (*this == "5.1.11") {
473473
return CassVersion("3.11.2-5111");
474474
} else if (*this == "5.1.12") {
475-
return CassVersion("3.11.2-5112");
476-
} else if (*this >= "5.1.13" && *this < "6.0.0") {
477-
if (*this > "5.1.13") {
475+
return CassVersion("3.11.3-5112");
476+
} else if (*this == "5.1.13") {
477+
return CassVersion("3.11.3-5113");
478+
} else if (*this == "5.1.14") {
479+
return CassVersion("3.11.3-5114");
480+
} else if (*this >= "5.1.15" && *this < "6.0.0") {
481+
if (*this > "5.1.15") {
478482
std::cerr << "Cassandra Version is not Defined: "
479483
<< "Add Cassandra version for DSE v" << this->to_string() << std::endl;
480484
}
481-
return CassVersion("3.11.2-5113");
485+
return CassVersion("3.11.3-5115");
482486
} else if (*this >= "6.0.0" && *this < "6.7.0") {
483487
return CassVersion(
484488
"3.11.2-5111"); // Versions before DSE 6.7 erroneously return they support Cassandra 4.0.0

docs.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ rules:
8888
use_path_nav_files_only: true
8989

9090
versions:
91+
- name: 1.9
92+
ref: 1.9.0
9193
- name: 1.8
9294
ref: 1.8.0
9395
- name: 1.7

include/dse.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
*/
5050

5151
#define DSE_VERSION_MAJOR 1
52-
#define DSE_VERSION_MINOR 8
52+
#define DSE_VERSION_MINOR 9
5353
#define DSE_VERSION_PATCH 0
5454
#define DSE_VERSION_SUFFIX ""
5555

0 commit comments

Comments
 (0)