Hello Louise, 

Your code starts with a “try { “ but doesn’t throw any exception. You might 
be interested in the DatastoreTimeoutException as exemplified in the 
“Handling Datastore Errors” online document 
<https://cloud.google.com/appengine/articles/handling_datastore_errors>. A 
sample statement looks like: catch (ConcurrentModificationException e). 

To properly roll back your transaction, you may consider following the 
examples provided in the “Transactions 
<https://cloud.google.com/appengine/docs/standard/java/datastore/transactions?csw=1>”
 
document. 

Because the Cloud Datastore API does not retry transactions, you may 
consider adding logic so that your app provides the same functionality, in 
your case to delete a number of entities, analogous to the 
  appengine/datastore/src/test/java/com/example/appengine/TransactionsTest.java 
sample code from this document. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/bf87b4b9-a93b-427a-b02a-87d180bbf815%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appengine]... Louise Elmose Hedegaard
    • [google-appen... 'George (Cloud Platform Support)' via Google App Engine

Reply via email to