Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Commit 4587031

Browse files
chore: generate libraries at Mon Dec 29 06:56:18 UTC 2025
1 parent 1ec5708 commit 4587031

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

google-cloud-spanner/src/main/java/com/google/cloud/spanner/MultiplexedSessionDatabaseClient.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,8 @@ ApiFuture<SessionReference> getCurrentSessionReferenceFuture() {
580580
private void maybeRetrySessionCreation() {
581581
sessionCreationLock.lock();
582582
try {
583-
if (isValid() && isMultiplexedSessionsSupported()
583+
if (isValid()
584+
&& isMultiplexedSessionsSupported()
584585
&& retryingSessionCreation.compareAndSet(false, true)) {
585586
SettableApiFuture<SessionReference> settableApiFuture = SettableApiFuture.create();
586587
asyncCreateMultiplexedSession(settableApiFuture);

google-cloud-spanner/src/test/java/com/google/cloud/spanner/DatabaseClientImplTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3413,7 +3413,8 @@ public void testGetInvalidatedClientMultipleTimes() {
34133413
if (spanner.getOptions().getSessionPoolOptions().getUseMultiplexedSession()) {
34143414
// We should receive 2 CreateSession request. The query should never be executed,
34153415
// as the session creation fails before it gets to executing a query.
3416-
assertEquals((2 * run) + useClient + 2,
3416+
assertEquals(
3417+
(2 * run) + useClient + 2,
34173418
mockSpanner.countRequestsOfType(CreateSessionRequest.class));
34183419
assertEquals(0, mockSpanner.countRequestsOfType(ExecuteSqlRequest.class));
34193420
} else {

0 commit comments

Comments
 (0)