From 968bdfbca8871a6558772756be8e3a5de00c7a62 Mon Sep 17 00:00:00 2001 From: rahul yadav Date: Fri, 11 Jul 2025 00:04:31 +0530 Subject: [PATCH 1/2] chore: bump set the max inbound message size from GRPC's default 4MB --- .../java/com/google/cloud/spanner/spi/v1/GapicSpannerRpc.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/GapicSpannerRpc.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/GapicSpannerRpc.java index fb69e5c1b1f..d3017afd618 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/GapicSpannerRpc.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/GapicSpannerRpc.java @@ -224,7 +224,7 @@ public class GapicSpannerRpc implements SpannerRpc { PathTemplate.create("projects/{project}"); private static final PathTemplate OPERATION_NAME_TEMPLATE = PathTemplate.create("{database=projects/*/instances/*/databases/*}/operations/{operation}"); - private static final int MAX_MESSAGE_SIZE = 100 * 1024 * 1024; + private static final int MAX_MESSAGE_SIZE = 256 * 1024 * 1024; private static final int MAX_METADATA_SIZE = 32 * 1024; // bytes private static final String PROPERTY_TIMEOUT_SECONDS = "com.google.cloud.spanner.watchdogTimeoutSeconds"; @@ -344,6 +344,8 @@ public GapicSpannerRpc(final SpannerOptions options) { InstantiatingGrpcChannelProvider.newBuilder() .setChannelConfigurator(options.getChannelConfigurator()) .setEndpoint(options.getEndpoint()) + .setMaxInboundMessageSize(MAX_MESSAGE_SIZE) + .setMaxInboundMetadataSize(MAX_METADATA_SIZE) .setPoolSize(options.getNumChannels()) // Set a keepalive time of 120 seconds to help long running From 4375f58583a63ecd92ee296cfb936b40e996232a Mon Sep 17 00:00:00 2001 From: rahul yadav Date: Fri, 11 Jul 2025 01:42:15 +0530 Subject: [PATCH 2/2] trigger build