Skip to content

Commit 2130f52

Browse files
fix(spanner): Updated the error message validation for Multiplexed Session fallback in Partitioned Operations.
1 parent 1b0ae68 commit 2130f52

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,7 @@ public List<Partition> partitionQuery(
297297
}
298298

299299
void maybeMarkUnimplementedForPartitionedOps(SpannerException spannerException) {
300-
if (spannerException.getErrorCode() == ErrorCode.INVALID_ARGUMENT
301-
&& MultiplexedSessionDatabaseClient.verifyErrorMessage(
300+
if (MultiplexedSessionDatabaseClient.verifyErrorMessage(
302301
spannerException,
303302
"Partitioned operations are not supported with multiplexed sessions")) {
304303
unimplementedForPartitionedOps.set(true);

0 commit comments

Comments
 (0)