Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(spanner): prevent possible panic for Session not found errors (#1…
…0386) The Spanner client library could panic if specifically the following situation would occur: 1. Create a StmtBasedReadWriteTransaction 2. Only execute mutations, so that an explicit BeginTransaction RPC is required. 3. The BeginTransaction RPC returns "Session not found" 4. The client library tries to get a new session from the pool. Step 4 above would panic, because the client library did not set the readOnlyTransaction.sp field for StmtBasedReadWriteTransactions. Fixes #10385 Co-authored-by: rahul2393 <[email protected]>
- Loading branch information