Skip to content

Commit 77f97e4

Browse files
committed
fix: increase max message size
Increase the client-side hardcoded max message size to prevent errors if the server sends larger than expected messages.
1 parent 2849fae commit 77f97e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/GapicSpannerRpc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ public class GapicSpannerRpc implements SpannerRpc {
224224
PathTemplate.create("projects/{project}");
225225
private static final PathTemplate OPERATION_NAME_TEMPLATE =
226226
PathTemplate.create("{database=projects/*/instances/*/databases/*}/operations/{operation}");
227-
private static final int MAX_MESSAGE_SIZE = 100 * 1024 * 1024;
227+
private static final int MAX_MESSAGE_SIZE = 256 * 1024 * 1024;
228228
private static final int MAX_METADATA_SIZE = 32 * 1024; // bytes
229229
private static final String PROPERTY_TIMEOUT_SECONDS =
230230
"com.google.cloud.spanner.watchdogTimeoutSeconds";

0 commit comments

Comments
 (0)