Skip to content

Conversation

@nparrag
Copy link

@nparrag nparrag commented Sep 30, 2020

When we try to save the entity in a transaction we are getting a lot of datastore contention exception.
We can reduce their number by randomly suspending a given thread for a while and retrying it a little bit later.
As I have seen in there was implemented a solution for it on the master.
Based on that created the same into Objectify v5.

I have added a small improvement:
Let the caller handle ConcurrentModificationException when we got InterruptedException in exponential backoff.


This change is Reviewable

frew and others added 3 commits September 30, 2020 18:23
backport changes from master: 137c373 Fred Wulff <frew@cs.stanford.edu> on 2018. 09. 07. at 21:09
backport changes from master:
787798b Fred Wulff <frew@cs.stanford.edu> on 2018. 08. 29. at 2:19
3cd9ad0 Fred Wulff <frew@cs.stanford.edu> on 2018. 08. 29. at 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants