Commit 5dc3e19
fix: do not delete session in close method for BatchReadOnlyTransactionImpl (#1688)
* fix: do not delete session in close method for BatchReadOnlyTransactionImpl
- remove session.close() from close() method implementation in
BatchReadOnlyTransactionImpl class.
- add a cleanup() method to BatchReadOnlyTransaction interface
and give user the control to delete session when the session
is no longer in use.
- add tests for txn.cleanup() method.
* 🦉 Updates from OwlBot
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* Incorporate review comments
Co-authored-by: Knut Olav Løite <[email protected]>
* Incorporate review comments.
Co-authored-by: Knut Olav Løite <[email protected]>
* 🦉 Updates from OwlBot
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* 🦉 Updates from OwlBot
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Knut Olav Løite <[email protected]>1 parent b8da725 commit 5dc3e19
File tree
4 files changed
+33
-10
lines changed- google-cloud-spanner
- src
- main/java/com/google/cloud/spanner
- test/java/com/google/cloud/spanner
4 files changed
+33
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
9 | 14 | | |
10 | 15 | | |
11 | 16 | | |
| |||
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
217 | 223 | | |
218 | | - | |
219 | | - | |
| 224 | + | |
220 | 225 | | |
221 | 226 | | |
222 | 227 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
200 | 208 | | |
Lines changed: 13 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
1630 | 1631 | | |
1631 | 1632 | | |
1632 | 1633 | | |
| 1634 | + | |
| 1635 | + | |
1633 | 1636 | | |
1634 | | - | |
1635 | | - | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
1636 | 1640 | | |
1637 | | - | |
1638 | | - | |
1639 | | - | |
1640 | | - | |
1641 | | - | |
1642 | | - | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
1643 | 1648 | | |
1644 | 1649 | | |
1645 | 1650 | | |
| |||
0 commit comments