Skip to content

Commit

Permalink
reproduce pingcap#53592
Browse files Browse the repository at this point in the history
Signed-off-by: you06 <[email protected]>
  • Loading branch information
you06 authored and ti-chi-bot committed May 29, 2024
1 parent 76a23fd commit c125914
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/statistics/handle/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"context"
"sync"
"sync/atomic"
"time"

"github.com/pingcap/errors"
"github.com/pingcap/tidb/pkg/config"
Expand Down Expand Up @@ -691,6 +692,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)
Expand Down Expand Up @@ -718,6 +720,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)
Expand Down

0 comments on commit c125914

Please sign in to comment.