-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Initial interface for transaction manager for manually managing retries of a transaction #2776
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| */ | ||
| TransactionRunner readWriteTransaction(); | ||
|
|
||
| TransactionManager transactionManager(); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| * Creates a new transaction for retry. This should only be called if the previous transaction | ||
| * failed with {@code ABORTED}. In all other cases, this will throw a {@link SpannerException}. | ||
| */ | ||
| TransactionContext resetForRetry(); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| TransactionContext resetForRetry(); | ||
|
|
||
| /** | ||
| * Returns the commit timestamp if the transaction committed successfully. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
@snehashah16 @pongad @hzyi-google Please review this. |
|
I'm not familiar enough with Spanner to properly review this, but as far as my feeble powers go, LGTM |
|
Thanks. I have added @snehashah16 from my team to do a thorough review. |
snehashah16
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@snehashah16 thanks for the quick review. |
#1810
cc @tomayles