You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add timeout and in-flight observability to OperationTimedOut
Improve timeout observability in the driver, inspired by the Go driver
PR scylladb/gocql#847.
OperationTimedOut now carries optional timeout and in_flight fields that
are appended to the exception message when present (e.g.
"(timeout=10.0s, in_flight=42)"). All seven production raise sites in
connection.py and cluster.py pass these values where available.
Additionally, debug-level log lines are emitted for:
- Client-side request timeouts (host, timeout, in_flight, orphaned)
- Server-side read/write timeouts (host, consistency, received/required,
data_retrieved/write_type, retry decision)
A helper _retry_decision_name() translates RetryPolicy constants to
human-readable strings for the log messages.
New keyword-only parameters are backward compatible — existing callers
that pass only positional errors/last_host continue to work unchanged.
Fixes: DRIVER-538
Signed-off-by: Yaniv Kaul <yaniv.kaul@scylladb.com>
0 commit comments