From 92720ee4a7a08cb3e38ae77678a907e26bcbea22 Mon Sep 17 00:00:00 2001 From: Ti Chi Robot Date: Fri, 27 Dec 2024 13:41:06 +0800 Subject: [PATCH] domain: change some stats log level as WARN (#58316) (#58552) ref pingcap/tidb#58315 --- domain/domain.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/domain/domain.go b/domain/domain.go index c5836cf051aba..77be7c95dcc48 100644 --- a/domain/domain.go +++ b/domain/domain.go @@ -2294,11 +2294,11 @@ func (do *Domain) loadStatsWorker() { } 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 @@ -2410,7 +2410,7 @@ func (do *Domain) updateStatsWorker(ctx sessionctx.Context, owner owner.Manager) case <-deltaUpdateTicker.C: err := statsHandle.DumpStatsDeltaToKV(handle.DumpDelta) if err != nil { - logutil.BgLogger().Debug("dump stats delta failed", zap.Error(err)) + logutil.BgLogger().Warn("dump stats delta failed", zap.Error(err)) } statsHandle.UpdateErrorRate(do.InfoSchema()) case <-loadFeedbackTicker.C: @@ -2438,12 +2438,12 @@ func (do *Domain) updateStatsWorker(ctx sessionctx.Context, owner owner.Manager) } 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)) } 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()