From 4e0ca4f9fa76bd0dfb16f7e166b3e2b935baf5cb Mon Sep 17 00:00:00 2001 From: Ryan Leung Date: Wed, 16 Oct 2024 14:33:49 +0800 Subject: [PATCH] fix Signed-off-by: Ryan Leung --- server/cluster/cluster.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/cluster/cluster.go b/server/cluster/cluster.go index 0f96824e8e2e..b1e41b637a1b 100644 --- a/server/cluster/cluster.go +++ b/server/cluster/cluster.go @@ -827,7 +827,9 @@ func (c *RaftCluster) Stop() { if !c.IsServiceIndependent(constant.SchedulingServiceName) { c.stopSchedulingJobs() } - c.stopTSOJobs() + if err := c.stopTSOJobs(); err != nil { + log.Error("failed to stop tso jobs", errs.ZapError(err)) + } c.heartbeatRunner.Stop() c.miscRunner.Stop() c.logRunner.Stop()