forked from edgedb/edgedb-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Retry if start() raises a retryable error (edgedb#228)
This issue was found in HA failover when the master Postgres is down, it raises a BackendUnavailableError to start a transaction, but the retrying_transaction() couldn't capture this retryable error from start(), because start() is called in __enter__(). Now _start() is called in tx.execute() or query*() lazily. Also removed start(), commit() and rollback() from retrying_transaction().
- Loading branch information
Showing
4 changed files
with
284 additions
and
76 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Oops, something went wrong.