scylladb / scylladb/python-rs-driver
Add reconnection-policy
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 6
- Forks
- 7
- Avg merge
- 5d 13h
- Merged PRs (30d)
- 9
Description
Background: in cassandra-driver, ReconnectionPolicy governs how long the driver waits before retrying a broken connection to a dead node in the background (ConstantReconnectionPolicy(delay), ExponentialReconnectionPolicy(base_delay, max_delay)). It is set once via Cluster(reconnection_policy=...).
Current usage in the test suite:
test/cluster/conftest.py:36,154:ExponentialReconnectionPolicy(1.0, 4.0)is set.
Status upstream: scylla-rust-driver already has this — scylla/src/policies/reconnect.rs defines ReconnectPolicy/ReconnectPolicySession plus a built-in ExponentialReconnectPolicy, but it's marked unstable, gated behind #[cfg(all(scylla_unstable, feature = "unstable-reconnect-policy"))].
We will need to wait until reconnection policies become stable API in the rust driver and then expose them similarly as We did with other policies.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading scylla/src/policies/reconnect.rs and checking whether the reconnection-policy API has become stable and available without the unstable feature gates. Compare the intended public API with test/cluster/conftest.py:36,154 and the existing policy exposure patterns. Done means exposing the stable Rust reconnection policies through the driver once the upstream API is ready.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cassandra, rust
- Domain
- backend, databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100