Skip to content

Commit

Permalink
domain: change some stats log level as WARN (#58316) (#58554)
Browse files Browse the repository at this point in the history
ref #58315
  • Loading branch information
ti-chi-bot authored Dec 31, 2024
1 parent fafe858 commit 207b06b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/domain/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -2380,11 +2380,11 @@ func (do *Domain) loadStatsWorker() {
case <-loadTicker.C:
err = statsHandle.Update(do.InfoSchema())
if err != nil {
logutil.BgLogger().Debug("update stats info failed", zap.Error(err))
logutil.BgLogger().Warn("update stats info failed", zap.Error(err))
}
err = statsHandle.LoadNeededHistograms()
if err != nil {
logutil.BgLogger().Debug("load histograms failed", zap.Error(err))
logutil.BgLogger().Warn("load histograms failed", zap.Error(err))
}
case <-do.exit:
return
Expand Down Expand Up @@ -2481,21 +2481,21 @@ func (do *Domain) updateStatsWorker(_ sessionctx.Context, owner owner.Manager) {
case <-deltaUpdateTicker.C:
err := statsHandle.DumpStatsDeltaToKV(false)
if err != nil {
logutil.BgLogger().Debug("dump stats delta failed", zap.Error(err))
logutil.BgLogger().Warn("dump stats delta failed", zap.Error(err))
}
case <-gcStatsTicker.C:
if !owner.IsOwner() {
continue
}
err := statsHandle.GCStats(do.InfoSchema(), do.DDL().GetLease())
if err != nil {
logutil.BgLogger().Debug("GC stats failed", zap.Error(err))
logutil.BgLogger().Warn("GC stats failed", zap.Error(err))
}
do.CheckAutoAnalyzeWindows()
case <-dumpColStatsUsageTicker.C:
err := statsHandle.DumpColStatsUsageToKV()
if err != nil {
logutil.BgLogger().Debug("dump column stats usage failed", zap.Error(err))
logutil.BgLogger().Warn("dump column stats usage failed", zap.Error(err))
}
case <-readMemTicker.C:
memory.ForceReadMemStats()
Expand Down

0 comments on commit 207b06b

Please sign in to comment.