From 12e527213f7083af782dac55132e8d226c13ca80 Mon Sep 17 00:00:00 2001 From: Yifan Xu <30385241+xuyifangreeneyes@users.noreply.github.com> Date: Fri, 2 Dec 2022 03:14:01 +0800 Subject: [PATCH] statistics: enlarge capacity of ddlEventCh to 1000 (#39532) ref pingcap/tidb#36004, ref pingcap/tidb#38189 --- statistics/handle/handle.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statistics/handle/handle.go b/statistics/handle/handle.go index b483d23c1cdfb..8462799bf2a77 100644 --- a/statistics/handle/handle.go +++ b/statistics/handle/handle.go @@ -463,7 +463,7 @@ type sessionPool interface { func NewHandle(ctx sessionctx.Context, lease time.Duration, pool sessionPool, tracker sessionctx.SysProcTracker, serverIDGetter func() uint64) (*Handle, error) { cfg := config.GetGlobalConfig() handle := &Handle{ - ddlEventCh: make(chan *ddlUtil.Event, 100), + ddlEventCh: make(chan *ddlUtil.Event, 1000), listHead: &SessionStatsCollector{mapper: make(tableDeltaMap), rateMap: make(errorRateDeltaMap)}, idxUsageListHead: &SessionIndexUsageCollector{mapper: make(indexUsageMap)}, pool: pool,