Skip to content

Commit 9f4dec9

Browse files
authored
executor: Enlarge the timeout for fetching TiFlash system tables (#57967) (#57977)
close #57816
1 parent d61c40d commit 9f4dec9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/executor/infoschema_reader.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3078,9 +3078,10 @@ func (e *TiFlashSystemTableRetriever) dataForTiFlashSystemTables(ctx context.Con
30783078
if !ok {
30793079
return nil, errors.New("Get tiflash system tables can only run with tikv compatible storage")
30803080
}
3081-
// send request to tiflash, timeout is 1s
3081+
// send request to tiflash, use 5 minutes as per-request timeout
30823082
instanceID := e.instanceIds[e.instanceIdx]
3083-
resp, err := tikvStore.GetTiKVClient().SendRequest(ctx, instanceID, &request, time.Second)
3083+
timeout := time.Duration(5*60) * time.Second
3084+
resp, err := tikvStore.GetTiKVClient().SendRequest(ctx, instanceID, &request, timeout)
30843085
if err != nil {
30853086
return nil, errors.Trace(err)
30863087
}

0 commit comments

Comments
 (0)