feat(dbapi): add retry_aborts_internally option to Connection by waiho-gumloop · Pull Request #16498 · googleapis/google-cloud-python
Navigation Menu
- Notifications You must be signed in to change notification settings
- Fork 1.7k
Conversation
Add a retry_aborts_internally flag to the DBAPI Connection class and the connect() function. When set to False, aborted transactions raise RetryAborted directly from commit() instead of entering the internal statement-replay retry loop. This aligns with RETRY_ABORTS_INTERNALLY in the Spanner JDBC driver and avoids nested retry loops when the application manages its own transaction retry logic. Fixes googleapis#16491
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters