Title: Transaction does not get rolled back if exception happens during commit. · Issue #457 · googleapis/google-cloud-python · GitHub
Open Graph Title: Transaction does not get rolled back if exception happens during commit. · Issue #457 · googleapis/google-cloud-python
X Title: Transaction does not get rolled back if exception happens during commit. · Issue #457 · googleapis/google-cloud-python
Description: For example: # >>> entity.kind() # 'Knd' with datastore.transaction.Transaction(): # entity1 has an incomplete key, hence the delete fails entity1.delete() # Exception: Request failed. Error was: Key path element must not be incomplete: ...
Open Graph Description: For example: # >>> entity.kind() # 'Knd' with datastore.transaction.Transaction(): # entity1 has an incomplete key, hence the delete fails entity1.delete() # Exception: Request failed. Error was: K...
X Description: For example: # >>> entity.kind() # 'Knd' with datastore.transaction.Transaction(): # entity1 has an incomplete key, hence the delete fails entity1.delete() # Exception: Request fai...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/457
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Transaction does not get rolled back if exception happens during commit.","articleBody":"For example:\n\n```\n# \u003e\u003e\u003e entity.kind()\n# 'Knd'\nwith datastore.transaction.Transaction():\n # entity1 has an incomplete key, hence the delete fails\n entity1.delete()\n# Exception: Request failed. Error was: Key path element must not be incomplete: [Knd: ]\n\nwith datastore.transaction.Transaction():\n entity2.save()\n# ValueError: Cannot start a transaction with another already in progress. \n```\n\nMaybe this isn't such a big deal since most code will stop working after the first uncaught exception? The only reason I noticed is because using a test-runner, the exception is caught and printed, but the process just moves on to the next.\n","author":{"url":"https://github.com/dhermes","@type":"Person","name":"dhermes"},"datePublished":"2014-12-23T00:36:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/457/google-cloud-python/issues/457"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b33b45ed-83fc-f203-ab55-661916f104a2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A282:2B7585:DE86B6:12DD297:6A4D5D50 |
| html-safe-nonce | a8b53107d8f1162baf81405a5756610e1252aad3ded29d7c0995ddf529410e33 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjgyOjJCNzU4NTpERTg2QjY6MTJERDI5Nzo2QTRENUQ1MCIsInZpc2l0b3JfaWQiOiIxMjQwODc3NDUwMTU1MzUxMzc2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 59aafc7d61d5b7903a1e0fc66efb7754fbfdaa4f79f4bcfea516e04e29d1e73b |
| hovercard-subject-tag | issue:52703753 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-python/457/issue_layout |
| twitter:image | https://opengraph.githubassets.com/05f00f60e26c9c2e1f4fa5da91ace5343c720420c453984c0de994e7af5fd23c/googleapis/google-cloud-python/issues/457 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/05f00f60e26c9c2e1f4fa5da91ace5343c720420c453984c0de994e7af5fd23c/googleapis/google-cloud-python/issues/457 |
| og:image:alt | For example: # >>> entity.kind() # 'Knd' with datastore.transaction.Transaction(): # entity1 has an incomplete key, hence the delete fails entity1.delete() # Exception: Request failed. Error was: K... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dhermes |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2a1443ff9733a3016431263ea73c93d8fe00c195eb4a7670ac30e7848f045441 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 16316451 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16316451 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f3bdd3157ea1f0fd738d408eceeead721acf1dc3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width