-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Making datastore batch/transaction more robust to failure.
- Ensuring that `Batch` methods `put()`, `delete()`, `commit()` and `rollback()` are only called when the batch is in progress. - In `Batch.__enter__()` make sure the batch is only put on the stack after `begin()` succeeds. - `Client.delete_multi()` and `Client.put_multi()` (and downstream methods) now call `begin()` on new `Batch` (since required to be in progress). - `Transaction.begin()` if `begin_transaction()` API call fails, make sure to change the status to `ABORTED` before raising the exception from the failure. Fixes #2297. Also updating the link for the httplib2 docs (the old docs have moved since the maintainer moved on: http://bitworking.org/news/2016/03/an_update_on_httplib2).
- Loading branch information
Showing
7 changed files
with
134 additions
and
11 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
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
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
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