Skip to content
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

cluster: keepalive config options #193

Merged
merged 3 commits into from
Oct 24, 2024
Merged

Conversation

muzarski
Copy link
Collaborator

@muzarski muzarski commented Oct 16, 2024

Config defaults

Adjusted the config defaults for some options that were already supported by cpp-rust-driver.

keepalive

Implemented cass_cluster_set_connection_heartbeat_interval and cass_cluster_set_connection_idle_timeout.
Set the defaults for these options.

HeartbeatTests

HeartbeastTests suite unfortunately cannot be enabled yet. It depends on logs emitted by the driver. However, we will be able to enable most of them, see scylladb/scylla-rust-driver#1092. The only exception is HeartbeatTests.Integration_Cassandra_HeartbeatFailed since it requires metrics support as well.

Pre-review checklist

  • I have split my patch into logically separate commits.
  • All commit messages clearly explain what they change and why.
  • PR description sums up the changes and reasons why they should be introduced.
  • [ ] I have implemented Rust unit tests for the features/changes introduced.
  • [] I have enabled appropriate tests in .github/workflows/build.yml in gtest_filter.
  • [] I have enabled appropriate tests in .github/workflows/cassandra.yml in gtest_filter.

In following commits, we will adjust the defaults
according to `cassandra.h`. It will be much clearer
if we define all defaults in nested scope.
Some of them are already set like this in rust-driver by default,
but it does not hurt us to set them here as well, in case something
changes in rust-driver.
@muzarski muzarski self-assigned this Oct 16, 2024
Sets the defaults, and implements:
- cass_cluster_set_connection_heartbeat_interval
- cass_cluster_set_connection_idle_timeout
@Lorak-mmk Lorak-mmk merged commit 94b6d16 into scylladb:master Oct 24, 2024
11 checks passed
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.

3 participants