transactions that aren't retried don't rollback #765
Labels
api: firestore
Issues related to the googleapis/python-firestore API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
in Transaction.call, rollback is called when retries are exhausted, or when pre-commit fails, but other exceptions cause an immediate raise, without any rollback.
To fix this, the entire
__call__
function should be wrapped in atry...except
block, that causes a rollback before any exceptions are raised out of the transactionThe text was updated successfully, but these errors were encountered: