Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

domain: make the transaction from initStatsCtx blocking gc (#53602) #53638

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
reproduce #53592
Signed-off-by: you06 <[email protected]>
you06 authored and ti-chi-bot committed May 29, 2024
commit c1259141dab7f0c1ebc528f6ecc77192ddbc6b7e
3 changes: 3 additions & 0 deletions pkg/statistics/handle/bootstrap.go
Original file line number Diff line number Diff line change
@@ -18,6 +18,7 @@ import (
"context"
"sync"
"sync/atomic"
"time"

"github.com/pingcap/errors"
"github.com/pingcap/tidb/pkg/config"
@@ -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)
@@ -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)