#4404 defect new
twisted.enterprise.adbapi.ConnectionPool does not raise ConnectionLost when cp_reconnect is set
|Reported by:||Brian Bernstein||Owned by:||Brian Bernstein|
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.
Change History (16)
comment:13 Changed 7 years ago by
|Owner:||set to Brian Bernstein|