Commit 671f892
authored
fix(spanner): add closeAsync to ReadContext and make transaction closing non-blocking (#14076)
Adds `ReadContext.closeAsync()` to allow closing read contexts
asynchronously without blocking caller threads. Refactors
`MultiUseReadOnlyTransaction` so that background query initializations
and `BeginTransaction` RPCs do not block thread execution during close,
while preserving legacy synchronous `close()` semantics and guarding
against new operations during closing.1 parent 9d41333 commit 671f892
5 files changed
Lines changed: 981 additions & 95 deletions
File tree
- java-spanner/google-cloud-spanner/src
- main/java/com/google/cloud/spanner
- test/java/com/google/cloud/spanner
0 commit comments