-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat(spanner): Add lastUseTime property to session #8942
feat(spanner): Add lastUseTime property to session #8942
Conversation
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.
Approving this as it does what it should, but take a look at my to slightly generic comments and consider whether it is something that we want to pick up, either in this PR or in a follow-up PR.
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
* feat(spanner): add new field and add relevant tests * feat(spanner): add test for read only transaction * feat(spanner): update lastUseTime before invoking the RPC * feat(spanner): reduce time to ms range in unit tests
Fixes #8943
For cleaning long running transactions, we would need a track of
lastUseTime
, which must be updated for every RPC made with in a transaction. This PR makes necessary code changes for achieving it.