Skip to content

Commit 35d065c

Browse files
committed
chore(spanner): don't throw error if precommit token is empty
1 parent 2362880 commit 35d065c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2024,14 +2024,14 @@ public void commit(CommitRequest request, StreamObserver<CommitResponse> respons
20242024
return;
20252025
}
20262026
sessionLastUsed.put(session.getName(), Instant.now());
2027-
if (session.getMultiplexed()
2027+
/*if (session.getMultiplexed()
20282028
&& !request.hasPrecommitToken()
20292029
&& !request.hasSingleUseTransaction()) {
20302030
throw Status.INVALID_ARGUMENT
20312031
.withDescription(
20322032
"A Commit request for a read-write transaction on a multiplexed session must specify a precommit token.")
20332033
.asRuntimeException();
2034-
}
2034+
}*/
20352035
try {
20362036
commitExecutionTime.simulateExecutionTime(exceptions, stickyGlobalExceptions, freezeLock);
20372037
// Find or start a transaction

0 commit comments

Comments
 (0)