Commit a421668
committed
fix: improve driver-side timeout logging with timeout value and pool state
When OperationTimedOutException fires in SpeculativeExecution.onTimeout(),
log the configured driver-side timeout, per-connection in-flight count,
pool pending borrow queue length, and total pool in-flight count.
This helps distinguish between two failure modes:
- Pool contention (requests queued inside the driver before reaching server):
visible as pool pending borrows > 0
- Server-side slowness (requests reached server but driver gave up first):
visible as pool pending borrows = 0 with high connection in-flight
To expose the timeout value, ResponseHandler.readTimeoutMillis is widened
from private to package-private. All access remains within
com.datastax.driver.core.
Motivated by CUSTOMER-301 (Whoop): client-side OperationTimedOutException
bursts with no corresponding server-side timeouts, requiring diagnostics
to determine whether the bottleneck is in the driver pool or on the server.1 parent fa0150c commit a421668
2 files changed
Lines changed: 15 additions & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1887 | 1887 | | |
1888 | 1888 | | |
1889 | 1889 | | |
1890 | | - | |
| 1890 | + | |
1891 | 1891 | | |
1892 | 1892 | | |
1893 | 1893 | | |
| |||
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1007 | 1007 | | |
1008 | 1008 | | |
1009 | 1009 | | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
1010 | 1024 | | |
1011 | 1025 | | |
1012 | 1026 | | |
| |||
0 commit comments