diff --git a/pkg/statistics/handle/bootstrap.go b/pkg/statistics/handle/bootstrap.go index d238c620fec8d..ec8b1d96811ff 100644 --- a/pkg/statistics/handle/bootstrap.go +++ b/pkg/statistics/handle/bootstrap.go @@ -18,6 +18,7 @@ import ( "context" "sync" "sync/atomic" + "time" "github.com/pingcap/errors" "github.com/pingcap/tidb/pkg/config" @@ -690,6 +691,7 @@ func (h *Handle) InitStatsLite(is infoschema.InfoSchema) (err error) { if err != nil { return err } + time.Sleep(30 * time.Minute) cache, err := h.initStatsMeta(is) if err != nil { return errors.Trace(err) @@ -717,6 +719,7 @@ func (h *Handle) InitStats(is infoschema.InfoSchema) (err error) { if err != nil { return err } + time.Sleep(30 * time.Minute) cache, err := h.initStatsMeta(is) if err != nil { return errors.Trace(err)