From 8e3a55ea5696cdfabd5abb31eee803316d241f5b Mon Sep 17 00:00:00 2001 From: Jianjun Liao <36503113+Leavrth@users.noreply.github.com> Date: Mon, 3 Jun 2024 16:31:24 +0800 Subject: [PATCH] br: remove timeout context to scan regions when import sst files (#53739) close pingcap/tidb#53724 --- br/pkg/restore/import.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/br/pkg/restore/import.go b/br/pkg/restore/import.go index b3e755f3ef73b..1c984b72f9f42 100644 --- a/br/pkg/restore/import.go +++ b/br/pkg/restore/import.go @@ -542,11 +542,9 @@ func (importer *FileImporter) ImportSSTFiles( } err = utils.WithRetry(ctx, func() error { - tctx, cancel := context.WithTimeout(ctx, importScanRegionTime) - defer cancel() // Scan regions covered by the file range regionInfos, errScanRegion := split.PaginateScanRegion( - tctx, importer.metaClient, startKey, endKey, split.ScanRegionPaginationLimit) + ctx, importer.metaClient, startKey, endKey, split.ScanRegionPaginationLimit) if errScanRegion != nil { return errors.Trace(errScanRegion) }