Commit a9bcab9
Add id(self) suffix to "Pool is closed" errors
The Pool is closed DqliteConnectionError previously gave operators no
way to identify which pool instance was the offender — a process can
hold multiple pools (rw + ro split, per-tenant, sharded) and the
generic message landed in centralised logs identically for every one.
Add an `(id={id(self)})` suffix so a traceback can be correlated
against the pool-warm-up logs that already include id(self).
The pool-is-closed message is not classifier-load-bearing on the SA
side (the pool failure surfaces as DqliteConnectionError wrapped to
OperationalError("Failed to connect: ...") from dbapi's connect()
arm, where is_disconnect uses a different match path), so the fragment
shape is freer than the dbapi-side closed-handle messages.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 8ea4ed7 commit a9bcab9
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
773 | 773 | | |
774 | 774 | | |
775 | 775 | | |
776 | | - | |
| 776 | + | |
777 | 777 | | |
778 | 778 | | |
779 | 779 | | |
780 | 780 | | |
781 | 781 | | |
782 | 782 | | |
783 | 783 | | |
784 | | - | |
| 784 | + | |
785 | 785 | | |
786 | 786 | | |
787 | 787 | | |
| |||
796 | 796 | | |
797 | 797 | | |
798 | 798 | | |
799 | | - | |
| 799 | + | |
800 | 800 | | |
801 | 801 | | |
802 | 802 | | |
| |||
846 | 846 | | |
847 | 847 | | |
848 | 848 | | |
849 | | - | |
| 849 | + | |
850 | 850 | | |
851 | 851 | | |
852 | 852 | | |
| |||
1025 | 1025 | | |
1026 | 1026 | | |
1027 | 1027 | | |
1028 | | - | |
| 1028 | + | |
1029 | 1029 | | |
1030 | 1030 | | |
1031 | 1031 | | |
| |||
0 commit comments