If we catch constraint violation exceptions and reraise them as Retry exceptions, this race conditions and all the similar ones should go away.
If we catch constraint violation exceptions and reraise them as Retry exceptions, this race conditions and all the similar ones should go away.