Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
lhy1024 committed Nov 6, 2023
1 parent 1d328ef commit 11ca5b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/schedule/checker/rule_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,8 @@ func (c *RuleChecker) fixOrphanPeers(region *core.RegionInfo, fit *placement.Reg

log.Info("try to replace unhealthy down peer", zap.Uint64("region-id", region.GetID()),
zap.Uint64("pindown-peer-store-id", pinDownPeer.GetStoreId()),
zap.Uint64("orphan-peer-store-id", pinDownPeer.GetStoreId()))
zap.Int("orphan-peers-len", len(fit.OrphanPeers)),
zap.Uint64("orphan-peer-store-id", fit.OrphanPeers[0].GetStoreId()))
// try to use orphan peers to replace unhealthy down peers.
for _, orphanPeer := range fit.OrphanPeers {
if pinDownPeer != nil {
Expand Down

0 comments on commit 11ca5b0

Please sign in to comment.