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: schema agreement interval (extension) and timeout #198

Merged
merged 2 commits into from
Nov 18, 2024

Conversation

muzarski
Copy link
Collaborator

Implemented cass_cluster_set_max_schema_wait_time which corresponds to schema_agreement_timeout option in rust-driver.

Defined and implemented cass_cluster_set_schema_agreement_interval which corresponds to schema_agreement_interval option in rust-driver. This is an extension.

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.

Set the default value for schema agreement timeout (10k millis),
and implemented `cass_cluster_set_max_schema_wait_time`.
This is an extension. Since, rust-driver exposes such config option,
nothing stops us from exposing it in cpp-rust-driver as well.
The default (200ms) is taken directly from rust-driver.

Defined and implemented `cass_cluster_set_schema_agreement_interval`.
@muzarski muzarski self-assigned this Oct 24, 2024
@muzarski muzarski merged commit 8238086 into scylladb:master Nov 18, 2024
11 checks passed
@muzarski muzarski mentioned this pull request Nov 27, 2024
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.

2 participants