Commit 5a3758b
Narrow try_connect except to the retry-eligible error set
ClusterClient.connect's inner try_connect coroutine previously caught
Exception to DEBUG-log each failure and re-raise. That pattern silently
instruments programming bugs (TypeError, AttributeError, …) which are
better left un-wrapped so their tracebacks point at the real source.
Narrow to the transport- and cluster-level types that retry_with_backoff
actually re-attempts: OSError, TimeoutError, DqliteConnectionError,
ClusterError. Matches the _socket_looks_dead / _drain_idle narrowings.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 1653dab commit 5a3758b
2 files changed
Lines changed: 25 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
246 | 252 | | |
247 | 253 | | |
248 | 254 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
629 | 629 | | |
630 | 630 | | |
631 | 631 | | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
0 commit comments