File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
br/pkg/lightning/backend/local Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,9 @@ const (
89
89
// maxWriteAndIngestRetryTimes is the max retry times for write and ingest.
90
90
// A large retry times is for tolerating tikv cluster failures.
91
91
maxWriteAndIngestRetryTimes = 30
92
- maxRetryBackoffTime = 30 * time .Second
92
+ // Unlimited RPC receive message size for TiKV importer
93
+ unlimitedRPCRecvMsgSize = math .MaxInt32
94
+ maxRetryBackoffTime = 30 * time .Second
93
95
94
96
gRPCKeepAliveTime = 10 * time .Minute
95
97
gRPCKeepAliveTimeout = 5 * time .Minute
@@ -168,6 +170,7 @@ func (f *importClientFactoryImpl) makeConn(ctx context.Context, storeID uint64)
168
170
ctx ,
169
171
addr ,
170
172
opt ,
173
+ grpc .WithDefaultCallOptions (grpc .MaxCallRecvMsgSize (unlimitedRPCRecvMsgSize )),
171
174
grpc .WithConnectParams (grpc.ConnectParams {Backoff : bfConf }),
172
175
grpc .WithKeepaliveParams (keepalive.ClientParameters {
173
176
Time : gRPCKeepAliveTime ,
You can’t perform that action at this time.
0 commit comments