Skip to content

Commit

Permalink
scheduler: fix panic in grant hot region scheduler
Browse files Browse the repository at this point in the history
Signed-off-by: lhy1024 <[email protected]>
  • Loading branch information
lhy1024 committed Dec 18, 2024
1 parent 7df0ff9 commit fd4ca5e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/schedule/schedulers/grant_hot_region.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,10 @@ func (s *grantHotRegionScheduler) transfer(cluster sche.SchedulerCluster, region
} else {
op, err = operator.CreateMovePeerOperator(s.GetName()+"-move", cluster, srcRegion, operator.OpRegion|operator.OpLeader, srcStore.GetID(), dstStore)
}
if err != nil {
log.Error("fail to create grant hot leader operator", errs.ZapError(err))
return
}
op.SetPriorityLevel(constant.High)
return
}

0 comments on commit fd4ca5e

Please sign in to comment.