diff --git a/server/cluster/cluster.go b/server/cluster/cluster.go index e002616462b..6f70e6cfeaf 100644 --- a/server/cluster/cluster.go +++ b/server/cluster/cluster.go @@ -462,6 +462,7 @@ func (c *RaftCluster) runServiceCheckJob() { case <-tsoTicker.C: // ensure raft cluster is running // avoid unexpected startTSOJobsIfNeeded when raft cluster is stopping + // ref: https://github.com/tikv/pd/issues/8781 c.RLock() if c.running { c.checkTSOService()