Skip to content

Commit

Permalink
executor: Enlarge the timeout for fetching TiFlash system tables (pin…
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Dec 6, 2024
1 parent d61c40d commit 9f4dec9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/executor/infoschema_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -3078,9 +3078,10 @@ func (e *TiFlashSystemTableRetriever) dataForTiFlashSystemTables(ctx context.Con
if !ok {
return nil, errors.New("Get tiflash system tables can only run with tikv compatible storage")
}
// send request to tiflash, timeout is 1s
// send request to tiflash, use 5 minutes as per-request timeout
instanceID := e.instanceIds[e.instanceIdx]
resp, err := tikvStore.GetTiKVClient().SendRequest(ctx, instanceID, &request, time.Second)
timeout := time.Duration(5*60) * time.Second
resp, err := tikvStore.GetTiKVClient().SendRequest(ctx, instanceID, &request, timeout)
if err != nil {
return nil, errors.Trace(err)
}
Expand Down

0 comments on commit 9f4dec9

Please sign in to comment.