From 0e739ee5af68af9ad59f1056a9a2922061d1a2b1 Mon Sep 17 00:00:00 2001 From: Ryan Leung Date: Mon, 21 Sep 2020 17:28:14 +0800 Subject: [PATCH] cherry pick #2972 to release-4.0 Signed-off-by: Ryan Leung --- server/schedule/checker/replica_checker.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/schedule/checker/replica_checker.go b/server/schedule/checker/replica_checker.go index 427f924f06e..42380ff0fc0 100644 --- a/server/schedule/checker/replica_checker.go +++ b/server/schedule/checker/replica_checker.go @@ -89,12 +89,13 @@ func (r *ReplicaChecker) Check(region *core.RegionInfo) *operator.Operator { checkerCounter.WithLabelValues("replica_checker", "no-target-store").Inc() return nil } - checkerCounter.WithLabelValues("replica_checker", "new-operator").Inc() op, err := operator.CreateAddPeerOperator("make-up-replica", r.cluster, region, newPeer, operator.OpReplica) if err != nil { log.Debug("create make-up-replica operator fail", errs.ZapError(err)) return nil } + checkerCounter.WithLabelValues("replica_checker", "new-operator").Inc() + op.SetPriorityLevel(core.HighPriority) return op }