From f36e0faf143fbde89d3b1ce99b460bdea81cc225 Mon Sep 17 00:00:00 2001 From: wlwilliamx Date: Mon, 25 Nov 2024 15:56:22 +0800 Subject: [PATCH] ddl puller(ticdc): Fix memory retention issue in ddlPullerImpl's PopFrontDDL method --- cdc/puller/ddl_puller.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cdc/puller/ddl_puller.go b/cdc/puller/ddl_puller.go index f9fc521f3d8..4990e39b513 100644 --- a/cdc/puller/ddl_puller.go +++ b/cdc/puller/ddl_puller.go @@ -734,6 +734,7 @@ func (h *ddlPullerImpl) PopFrontDDL() (uint64, *timodel.Job) { return atomic.LoadUint64(&h.resolvedTS), nil } job := h.pendingDDLJobs[0] + h.pendingDDLJobs[0] = nil h.pendingDDLJobs = h.pendingDDLJobs[1:] return job.BinlogInfo.FinishedTS, job }