Ticket #4404 defect new
twisted.enterprise.adbapi.ConnectionPool does not raise ConnectionLost when cp_reconnect is set
| Reported by: | bernie9998 | Owned by: | bernie9998 |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | core | Keywords: | |
| Cc: | screwtape@… | Branch: | |
| Author: | Launchpad Bug: |
Description
When running a database action with ConnectionPool.runInteraction or runOperation or runQuery and the cp_reconnect flag is set, ConnectionPool fails to raise the ConnectionLost exception as expected.
Instead, the ConnectionLost exception is discarded and the original exception thrown by the dbapi driver is raised instead.
This is not ideal as it requires a different check for each database implementation to determine if a request needs to be retried after a disconnect. If the ConnectionLost exception was raised as expected, a simpler check would be possible which would be independent of database implementation.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

