Skip to content

Commit 599778a

Browse files
JaySon-Huangti-chi-bot
authored andcommitted
This is an automated cherry-pick of pingcap#57967
Signed-off-by: ti-chi-bot <[email protected]>
1 parent bf9ec52 commit 599778a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/executor/infoschema_reader.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3078,9 +3078,16 @@ 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+
<<<<<<< HEAD
30813082
// send request to tiflash, timeout is 1s
30823083
instanceID := e.instanceIds[e.instanceIdx]
30833084
resp, err := tikvStore.GetTiKVClient().SendRequest(ctx, instanceID, &request, time.Second)
3085+
=======
3086+
// send request to tiflash, use 5 minutes as per-request timeout
3087+
instanceID := e.instanceIDs[e.instanceIdx]
3088+
timeout := time.Duration(5*60) * time.Second
3089+
resp, err := tikvStore.GetTiKVClient().SendRequest(ctx, instanceID, &request, timeout)
3090+
>>>>>>> a0a7cef9bdd (executor: Enlarge the timeout for fetching TiFlash system tables (#57967))
30843091
if err != nil {
30853092
return nil, errors.Trace(err)
30863093
}

0 commit comments

Comments
 (0)