On Nov 17, 2:59 pm, Rusty Wright <[email protected]> wrote:
> Is there some way to pause before retrying the database transaction?  If you 
> don't, then it seems to me that the processes that are banging into each 
> other are going to keep failing.  I'd like to add a pause for a random amount 
> of time in the catch block.
>

It is not necessary to pause before retrying because if a transaction
fails with a 'RetryException' it is only because some other
transaction was committed and that other transaction made some changes
that are incompatible with the failed transactions changes.

So... suppose you kick off 10 transactions at once.
At *most* only 9 of those transactions will fail with a
RetryException.
If you retry those 9 then at *most* 8 will fail, and so on....


--

You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=.


Reply via email to