File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
br/pkg/lightning/backend/local Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,9 @@ var (
113
113
// MaxWriteAndIngestRetryTimes is the max retry times for write and ingest.
114
114
// A large retry times is for tolerating tikv cluster failures.
115
115
MaxWriteAndIngestRetryTimes = 30
116
+
117
+ // Unlimited RPC receive message size for TiKV importer
118
+ unlimitedRPCRecvMsgSize = math .MaxInt32
116
119
)
117
120
118
121
// ImportClientFactory is factory to create new import client for specific store.
@@ -166,6 +169,7 @@ func (f *importClientFactoryImpl) makeConn(ctx context.Context, storeID uint64)
166
169
addr = store .GetAddress ()
167
170
}
168
171
opts = append (opts ,
172
+ grpc .WithDefaultCallOptions (grpc .MaxCallRecvMsgSize (unlimitedRPCRecvMsgSize )),
169
173
grpc .WithConnectParams (grpc.ConnectParams {Backoff : bfConf }),
170
174
grpc .WithKeepaliveParams (keepalive.ClientParameters {
171
175
Time : gRPCKeepAliveTime ,
You can’t perform that action at this time.
0 commit comments