-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(spanner): long running transaction clean up - disabled (#8177)
* feat(spanner): long running transaction clean up to prevent session leaks * feat(spanner): code refactoring in session.go file * fix(spanner): fix vet * feat(spanner): refactor client.go file * feat(spanner): add lock when updating session handle * feat(spanner): code refactoring in transaction.go file * test(spanner): remove test * feat(spanner): code refactor * feat(spanner): refactor nit comments * feat(spanner): reduce sleep timing to milli seconds for unit tests * feat(spanner): update idleTimeThresholdSecs field to time.Duration * feat(spanner): make the log messages conditional based on type of action for inactive transactions * feat(spanner): combine get and remove long running sessions in a single function to avoid sleep statements during unit tests * feat(spanner): modify presubmit condition to run tests for changed modules. Currently tests are not getting run as part of github presubmits. * feat(spanner): revert presubmit.sh fix * feat(spanner): update doc * feat(spanner): reword isLongRunning to eligibleForLongRunning in sessionHandle * feat(spanner): update TrackSessionHandles logic to turn off stack trace by default for long running sessions * feat(spanner): fix test * feat(spanner): change action on inactive transactions option to enum * feat(spanner): fix lint * feat(spanner): fix lint * feat(spanner): fix lint * feat(spanner): fix doc * feat(spanner): disable the feature by default * feat(spanner): revert commit - disable the feature by default * fix: lint * docs: add Readme * feat(spanner): make WARN as default for action on inactive transactions * docs: address review comments * docs: move README.md changes in a different PR * feat: disable feature
- Loading branch information
1 parent
e3fbe6e
commit c37a735
Showing
6 changed files
with
928 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.