Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
b139bcb
Merge remote-tracking branch 'core/2.12.0_prep'
Apr 19, 2019
dd69942
Updating libuv version for *nix builds
Apr 19, 2019
e6e3c59
CPP-766 - Allow RPM packages to be built on Amazon Linux (#230)
mikefero Apr 25, 2019
53354e9
CPP-764 - Move internal components from `namespace cass` to `namespa…
mpenick Apr 29, 2019
0c8d1eb
CPP-770 Fix header file include guards (__CASS_XXX to DATASTAX_XXX) (…
mpenick Apr 30, 2019
a90986b
Manual formatting fixes before clang-format
May 1, 2019
4b8ab03
Add basic support for clang-format
May 1, 2019
4762815
Add format check to Jenkins CI
May 1, 2019
183e10f
Run clang-format
May 1, 2019
28db6f2
Fix clang-format cpp standard (Cpp03)
May 1, 2019
1a37d1f
Rerun clang-format
May 1, 2019
657e8fa
Merge pull request #235 from riptano/CPP-769
mpenick May 1, 2019
232f222
CPP-772 Remove per cpp file LOG_FILE attribute to speed up Windows build
May 1, 2019
95d6e15
Remove `/GL` and `/LTCG` from Windows builds
May 2, 2019
290f3c9
Merge pull request #236 from riptano/CPP-772
mpenick May 2, 2019
772e3a2
Run clang-format
May 7, 2019
625383a
CPP-775 - Add clang-format targets for Windows command line
May 7, 2019
e87cafb
Manually fixing code format before re-running clang-format
May 7, 2019
97ec92a
Merge pull request #240 from riptano/CPP-775
mikefero May 8, 2019
b576485
CPP-774 - Updating Windows binary publishing to Artifactory (#237)
mikefero May 8, 2019
b24fb3e
CPP-776 - test: Ensure mockssandra decodes entire frame (#247)
mikefero May 23, 2019
9b43b92
Merge remote-tracking branch 'core/master' into sync_core
May 29, 2019
a596639
Merge pull request #250 from riptano/sync_core
mikefero May 29, 2019
85a9294
Update copyright in README (#253)
mpenick Jun 6, 2019
3870627
CPP-745 - Exponential reconnection policy with jitter (#254)
mikefero Jun 21, 2019
cad4643
CPP-573 - docs: Fixing broken links and warnings (#257)
mikefero Jun 26, 2019
d7c3fd4
Merge remote-tracking branch 'core/master' into oss_merge
Jun 26, 2019
9ef1b03
Merge pull request #258 from riptano/oss_merge
mikefero Jun 26, 2019
52b42e2
Update CHANGELOG and versions
Jun 25, 2019
f9ef106
test: Updating Cassandra and DSE versions
Jun 26, 2019
09356d0
test: Fixing comparison warnings
Jun 26, 2019
cc05955
Fixing namespacing for core driver
Jun 26, 2019
a0f7023
Merge remote-tracking branch 'core/master' into 1.9.0_release_prep
Jun 27, 2019
7ec952d
test: Fixing comments and correcting values
Jun 28, 2019
b996200
doc: Fixing up formatting
Jun 28, 2019
08c85b3
Merge pull request #259 from riptano/1.9.0_release_prep
mikefero Jul 1, 2019
2670a38
Merge tag '1.9.0' into 2.13.0_release_prep
Jul 1, 2019
3b17f5c
CPP-769 - Adding format target for OSS driver
Jul 1, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 26 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,40 @@
1.9.0
===========

Features
--------
* [CPP-745] Exponential reconnection policy with jitter
* [CPP-769] Use `clang-format` to fix up formatting
* [CPP-775] Add `clang-format` to Windows

Other
--------
* [CPP-743] Move internal components from `namespace cass` to `namespace datastax::internal`
* [CPP-764] Rename namespace from `cass` to `datastax`
* [CPP-766] Allow RPM packaging script to build RPM packages for Amazon Linux
* [CPP-770] Fix header files include guard (\_\_CASS_XXX to DATASTAX_XXX)
* [CPP-772] Remove per cpp file LOG_FILE attribute to speed up Windows builds

1.8.0
===========

Features
--------
[CPP-722] Insightful monitoring (Insights) startup message
[CPP-723] Insightful monitoring (Insights) status event message
[CPP-741] Allow user to configure client ID
[CPP-751] Call host listener callback for the initial set of hosts
* [CPP-722] Insightful monitoring (Insights) startup message
* [CPP-723] Insightful monitoring (Insights) status event message
* [CPP-741] Allow user to configure client ID
* [CPP-751] Call host listener callback for the initial set of hosts

Bug Fixes
--------
[CPP-755] UDT metadata not being properly populated/updated
* [CPP-755] UDT metadata not being properly populated/updated

Other
--------
[CPP-705] Deprecate DC-aware multi-DC settings (`used_hosts_per_remote_dc`
and `allowRemoteDCsForLocalConsistencyLevel `)
[CPP-720] Streamline custom allocator
[CPP-752] Add connection count to Host
* [CPP-705] Deprecate DC-aware multi-DC settings (`used_hosts_per_remote_dc`
and `allowRemoteDCsForLocalConsistencyLevel `)
* [CPP-720] Streamline custom allocator
* [CPP-752] Add connection count to Host

1.7.0
===========
Expand Down
8 changes: 4 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ environment:
APPVEYOR_IGNORE_COMMIT_FILTERING_ON_TAG: true
DRIVER_TYPE: DSE
BOOST_VERSION: 1.69.0
LIBSSH2_VERSION: 1.8.2
LIBUV_VERSION: 1.28.0
OPENSSL_1_0_VERSION: 1.0.2r
OPENSSL_1_1_VERSION: 1.1.1b
LIBSSH2_VERSION: 1.9.0
LIBUV_VERSION: 1.29.1
OPENSSL_1_0_VERSION: 1.0.2s
OPENSSL_1_1_VERSION: 1.1.1c
matrix:
- CMAKE_GENERATOR: Visual Studio 10 2010
OPENSSL_MAJOR_MINOR: 1.0
Expand Down
2 changes: 1 addition & 1 deletion build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ os:
- centos/7-64/cpp
- osx/high-sierra
env:
LIBUV_VERSION: 1.28.0
LIBUV_VERSION: 1.29.1
build:
- script: |
. ./cpp-driver/.build.sh
Expand Down
34 changes: 29 additions & 5 deletions cpp-driver/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,43 @@
2.13.0
===========

Features
--------
* [CPP-745] Exponential reconnection policy with jitter
* [CPP-769] Use `clang-format` to fix up formatting
* [CPP-775] Add `clang-format` to Windows

Other
--------
* [CPP-743] Move internal components from `namespace cass` to `namespace datastax::internal`
* [CPP-764] Rename namespace from `cass` to `datastax`
* [CPP-766] Allow RPM packaging script to build RPM packages for Amazon Linux
* [CPP-770] Fix header files include guard (\_\_CASS_XXX to DATASTAX_XXX)
* [CPP-772] Remove per cpp file LOG_FILE attribute to speed up Windows builds

Community
--------
* Fixed the location of the '[in]' information for Doxygen. (AlexisWilke)
* Added header subdirectory installation capability. (accelerated)
* Changed pkg_config templates to use the library variable name. (accelerated)
* Fix generation of shlib deps file for debian packages. (jirkasilhan)

2.12.0
===========

Features
--------
[CPP-751] Call host listener callback for the initial set of hosts
* [CPP-751] Call host listener callback for the initial set of hosts

Bug Fixes
--------
[CPP-755] UDT metadata not being properly populated/updated
* [CPP-755] UDT metadata not being properly populated/updated

Other
--------
[CPP-705] Deprecate DC-aware multi-DC settings (`used_hosts_per_remote_dc`
and `allowRemoteDCsForLocalConsistencyLevel `)
[CPP-720] Streamline custom allocator
* [CPP-705] Deprecate DC-aware multi-DC settings (`used_hosts_per_remote_dc`
and `allowRemoteDCsForLocalConsistencyLevel `)
* [CPP-720] Streamline custom allocator

2.11.0
===========
Expand Down
8 changes: 4 additions & 4 deletions cpp-driver/appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ environment:
APPVEYOR_IGNORE_COMMIT_FILTERING_ON_TAG: true
DRIVER_TYPE: CASS
BOOST_VERSION: 1.69.0
LIBSSH2_VERSION: 1.8.2
LIBUV_VERSION: 1.28.0
OPENSSL_1_0_VERSION: 1.0.2r
OPENSSL_1_1_VERSION: 1.1.1b
LIBSSH2_VERSION: 1.9.0
LIBUV_VERSION: 1.29.1
OPENSSL_1_0_VERSION: 1.0.2s
OPENSSL_1_1_VERSION: 1.1.1c
matrix:
- CMAKE_GENERATOR: Visual Studio 10 2010
OPENSSL_MAJOR_MINOR: 1.0
Expand Down
2 changes: 1 addition & 1 deletion cpp-driver/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ os:
- centos/7-64/cpp
- osx/high-sierra
env:
LIBUV_VERSION: 1.28.0
LIBUV_VERSION: 1.29.1
build:
- script: |
. .build.sh
Expand Down
4 changes: 2 additions & 2 deletions cpp-driver/cmake/modules/ExternalProject-OpenSSL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ endif()
# OpenSSL related CMake options
option(OPENSSL_VERSION "OpenSSL version to build and install")
if(NOT OPENSSL_VERSION)
# TODO: Should we default to OpenSSL 1.1 (e.g. 1.1.1b)?
set(OPENSSL_VERSION "1.0.2r")
# TODO: Should we default to OpenSSL 1.1 (e.g. 1.1.1c)?
set(OPENSSL_VERSION "1.0.2s")
endif()
option(OPENSSL_INSTALL_PREFIX "OpenSSL installation prefix location")
if(CASS_USE_ZLIB)
Expand Down
2 changes: 1 addition & 1 deletion cpp-driver/cmake/modules/ExternalProject-libssh2.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if(NOT LIBSSH2_INSTALL_PREFIX)
endif()
option(LIBSSH2_VERSION "libssh2 version to build and install")
if(NOT LIBSSH2_VERSION)
set(LIBSSH2_VERSION "1.8.2")
set(LIBSSH2_VERSION "1.9.0")
endif()
set(LIBSSH2_VERSION ${LIBSSH2_VERSION} CACHE STRING "libssh2 version to build and install" FORCE)

Expand Down
2 changes: 1 addition & 1 deletion cpp-driver/cmake/modules/ExternalProject-libuv.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if(NOT LIBUV_INSTALL_PREFIX)
endif()
option(LIBUV_VERSION "libuv version to build and install")
if(NOT LIBUV_VERSION)
set(LIBUV_VERSION "1.28.0")
set(LIBUV_VERSION "1.29.1")
endif()
set(LIBUV_VERSION ${LIBUV_VERSION} CACHE STRING "libuv version to build and install" FORCE)

Expand Down
2 changes: 2 additions & 0 deletions cpp-driver/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ rules:
use_path_nav_files_only: true

versions:
- name: "2.13"
ref: 2.13.0
- name: "2.12"
ref: 2.12.0
- name: "2.11"
Expand Down
4 changes: 2 additions & 2 deletions cpp-driver/gtests/src/integration/options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
#include <algorithm>
#include <iostream>

#define DEFAULT_OPTIONS_CASSSANDRA_VERSION CCM::CassVersion("3.11.3")
#define DEFAULT_OPTIONS_DSE_VERSION CCM::DseVersion("6.0.4")
#define DEFAULT_OPTIONS_CASSSANDRA_VERSION CCM::CassVersion("3.11.4")
#define DEFAULT_OPTIONS_DSE_VERSION CCM::DseVersion("6.0.8")

// Initialize the defaults for all the options
bool Options::is_initialized_ = false;
Expand Down
6 changes: 3 additions & 3 deletions cpp-driver/gtests/src/integration/tests/test_cluster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ TEST(ClusterTest, SetLoadBalanceDcAwareNullLocalDc) {
TEST(ClusterTest, ExponentialReconnectionPolicyBadParameters) {
test::driver::Cluster cluster;

// Base delay cannot be zero
// Base delay must be greater than 1
EXPECT_EQ(CASS_ERROR_LIB_BAD_PARAMS, cass_cluster_set_exponential_reconnect(cluster.get(), 0, 1));
// Max delay cannot be zero
// Max delay must be greater than 1
EXPECT_EQ(CASS_ERROR_LIB_BAD_PARAMS, cass_cluster_set_exponential_reconnect(cluster.get(), 1, 0));
// Base delay cannot be greater than max delay
EXPECT_EQ(CASS_ERROR_LIB_BAD_PARAMS, cass_cluster_set_exponential_reconnect(cluster.get(), 2, 1));
EXPECT_EQ(CASS_ERROR_LIB_BAD_PARAMS, cass_cluster_set_exponential_reconnect(cluster.get(), 3, 2));
}
6 changes: 3 additions & 3 deletions cpp-driver/gtests/src/unit/tests/test_cluster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -952,8 +952,8 @@ TEST_F(ClusterUnitTest, ReconnectionPolicy) {

ClusterUnitTestReconnectionPolicy::Ptr policy(
static_cast<ClusterUnitTestReconnectionPolicy::Ptr>(settings.reconnection_policy));
EXPECT_EQ(2, policy->reconnection_schedule_count());
EXPECT_EQ(2, policy->destroyed_reconnection_schedule_count());
EXPECT_EQ(2u, policy->reconnection_schedule_count());
EXPECT_EQ(2u, policy->destroyed_reconnection_schedule_count());
EXPECT_GE(policy->scheduled_delay_count(), 2u);
EXPECT_EQ(3, mock_cluster.connection_attempts(1)); // Includes initial connection attempt
EXPECT_EQ(3u, mock_cluster.connection_attempts(1)); // Includes initial connection attempt
}
12 changes: 6 additions & 6 deletions cpp-driver/gtests/src/unit/tests/test_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ TEST_F(PoolUnitTest, ReconnectionPolicy) {
settings.reconnection_policy.reset(new PoolUnitTestReconnectionPolicy());
initializer->with_settings(settings)->with_listener(listener.get())->initialize(loop(), hosts);
uv_run(loop(), UV_RUN_DEFAULT);
EXPECT_EQ(listener_status.count(ListenerStatus::UP), 2) << listener_status.results();
EXPECT_EQ(listener_status.count(ListenerStatus::UP), 2u) << listener_status.results();

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

PoolUnitTestReconnectionPolicy::Ptr policy(
static_cast<PoolUnitTestReconnectionPolicy::Ptr>(settings.reconnection_policy));
EXPECT_EQ(2, policy->reconnection_schedule_count());
EXPECT_EQ(2, policy->destroyed_reconnection_schedule_count());
EXPECT_EQ(2, policy->scheduled_delay_count());
EXPECT_EQ(3, cluster.connection_attempts(1)); // Includes initial connection attempt
EXPECT_EQ(1, cluster.connection_attempts(2));
EXPECT_EQ(2u, policy->reconnection_schedule_count());
EXPECT_EQ(2u, policy->destroyed_reconnection_schedule_count());
EXPECT_EQ(2u, policy->scheduled_delay_count());
EXPECT_EQ(3u, cluster.connection_attempts(1)); // Includes initial connection attempt
EXPECT_EQ(1u, cluster.connection_attempts(2));
}

TEST_F(PoolUnitTest, PartialReconnect) {
Expand Down
2 changes: 1 addition & 1 deletion cpp-driver/gtests/src/unit/tests/test_protocol_version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "cassandra.h"
#include "protocol.hpp"

using cass::ProtocolVersion;
using datastax::internal::core::ProtocolVersion;

class ProtocolVersionUnitTest : public Unit {};

Expand Down
2 changes: 1 addition & 1 deletion cpp-driver/include/cassandra.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
*/

#define CASS_VERSION_MAJOR 2
#define CASS_VERSION_MINOR 12
#define CASS_VERSION_MINOR 13
#define CASS_VERSION_PATCH 0
#define CASS_VERSION_SUFFIX ""

Expand Down
5 changes: 5 additions & 0 deletions cpp-driver/src/monitor_reporting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@

#include "monitor_reporting.hpp"

using namespace datastax;
using namespace datastax::internal::core;

namespace datastax { namespace internal { namespace core {

MonitorReporting* create_monitor_reporting(const String& client_id, const String& session_id,
const Config& config) {
return new NopMonitorReporting();
}

}}} // namespace datastax::internal::core
1 change: 1 addition & 0 deletions cpp-driver/src/protocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#define DSE_PROTOCOL_VERSION_BIT 0x40
#define DSE_PROTOCOL_VERSION_MASK 0x3F

using namespace datastax;
using namespace datastax::internal::core;

ProtocolVersion::ProtocolVersion()
Expand Down
4 changes: 2 additions & 2 deletions cpp-driver/test/ccm_bridge/data/config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#
# Uncomment to specify Cassandra version
##
#CASSANDRA_VERSION=3.11.3
#CASSANDRA_VERSION=3.11.4
##
# Flag to determine if Cassandra/DSE version should be obtained from ASF/GitHub
#
Expand Down Expand Up @@ -68,7 +68,7 @@
#
# Uncomment to specify DSE version
##
#DSE_VERSION=6.0.4
#DSE_VERSION=6.0.8
##
# CCM DSE Credentials Type (username_password|ini_file)
#
Expand Down
4 changes: 2 additions & 2 deletions cpp-driver/test/ccm_bridge/src/bridge.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ typedef struct _LIBSSH2_CHANNEL LIBSSH2_CHANNEL;
#endif

// Default values
#define DEFAULT_CASSANDRA_VERSION CassVersion("3.11.3")
#define DEFAULT_DSE_VERSION DseVersion("6.0.4")
#define DEFAULT_CASSANDRA_VERSION CassVersion("3.11.4")
#define DEFAULT_DSE_VERSION DseVersion("6.0.8")
#define DEFAULT_USE_GIT false
#define DEFAULT_USE_INSTALL_DIR false
#define DEFAULT_USE_DSE false
Expand Down
12 changes: 8 additions & 4 deletions cpp-driver/test/ccm_bridge/src/cass_version.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,13 +472,17 @@ class DseVersion : public CassVersion {
} else if (*this == "5.1.11") {
return CassVersion("3.11.2-5111");
} else if (*this == "5.1.12") {
return CassVersion("3.11.2-5112");
} else if (*this >= "5.1.13" && *this < "6.0.0") {
if (*this > "5.1.13") {
return CassVersion("3.11.3-5112");
} else if (*this == "5.1.13") {
return CassVersion("3.11.3-5113");
} else if (*this == "5.1.14") {
return CassVersion("3.11.3-5114");
} else if (*this >= "5.1.15" && *this < "6.0.0") {
if (*this > "5.1.15") {
std::cerr << "Cassandra Version is not Defined: "
<< "Add Cassandra version for DSE v" << this->to_string() << std::endl;
}
return CassVersion("3.11.2-5113");
return CassVersion("3.11.3-5115");
} else if (*this >= "6.0.0" && *this < "6.7.0") {
return CassVersion(
"3.11.2-5111"); // Versions before DSE 6.7 erroneously return they support Cassandra 4.0.0
Expand Down
2 changes: 2 additions & 0 deletions docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ rules:
use_path_nav_files_only: true

versions:
- name: 1.9
ref: 1.9.0
- name: 1.8
ref: 1.8.0
- name: 1.7
Expand Down
2 changes: 1 addition & 1 deletion include/dse.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
*/

#define DSE_VERSION_MAJOR 1
#define DSE_VERSION_MINOR 8
#define DSE_VERSION_MINOR 9
#define DSE_VERSION_PATCH 0
#define DSE_VERSION_SUFFIX ""

Expand Down