File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1 Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ public class GapicSpannerRpc implements SpannerRpc {
224
224
PathTemplate .create ("projects/{project}" );
225
225
private static final PathTemplate OPERATION_NAME_TEMPLATE =
226
226
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 ;
228
228
private static final int MAX_METADATA_SIZE = 32 * 1024 ; // bytes
229
229
private static final String PROPERTY_TIMEOUT_SECONDS =
230
230
"com.google.cloud.spanner.watchdogTimeoutSeconds" ;
@@ -344,6 +344,8 @@ public GapicSpannerRpc(final SpannerOptions options) {
344
344
InstantiatingGrpcChannelProvider .newBuilder ()
345
345
.setChannelConfigurator (options .getChannelConfigurator ())
346
346
.setEndpoint (options .getEndpoint ())
347
+ .setMaxInboundMessageSize (MAX_MESSAGE_SIZE )
348
+ .setMaxInboundMetadataSize (MAX_METADATA_SIZE )
347
349
.setPoolSize (options .getNumChannels ())
348
350
349
351
// Set a keepalive time of 120 seconds to help long running
You can’t perform that action at this time.
0 commit comments