scylla-rust-driver
scylla-rust-driver copied to clipboard
Decouple schema fetch queries from server-side timeouts
Details
If the user set server-side timeouts, or service level timeouts, this impacts schema fetches. The timeout can be too low to allow a schema fetch when the schema is very large.
Instead, qualify schema (and other metadata) fetches with USING TIMEOUT (with a high and configurable default) so schema fetches work regardless of timeout tuning.
Core issue: https://github.com/scylladb/scylladb/issues/18471
Limitations
-
USING TIMEOUTis not supported bycassandraand support by all majorscyllaversions, so it is safe to assume it is supported by seeing scylla-specific metadata. - Minimal supported scale is
ms, so statement suffix should look like this:USING TIMEOUT {timeout_in_ms} ms
Requirements
- Timeout should be configurable and default should be
2s -
0signals that feature is disabled