Skip to content

Commit

Permalink
resolve conflict
Browse files Browse the repository at this point in the history
Signed-off-by: nolouch <nolouch@gmail.com>
  • Loading branch information
nolouch committed Sep 8, 2021
1 parent 9ee1fbc commit e35fe75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
12 changes: 1 addition & 11 deletions server/schedule/checker/replica_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,22 +188,12 @@ func (r *ReplicaChecker) checkDownPeer(region *core.RegionInfo) *operator.Operat
log.Warn("lost the store, maybe you are recovering the PD cluster", zap.Uint64("store-id", storeID))
return nil
}
<<<<<<< HEAD
// Only consider the state of the Store, not `stats.DownSeconds`.
if store.DownTime() < r.cluster.GetMaxStoreDownTime() {
continue
}
if stats.GetDownSeconds() < uint64(r.cluster.GetMaxStoreDownTime().Seconds()) {
continue
}

return r.fixPeer(region, peer, downStatus)
=======
// Only consider the state of the Store, not `stats.DownSeconds`.
if store.DownTime() < r.opts.GetMaxStoreDownTime() {
continue
}
return r.fixPeer(region, storeID, downStatus)
>>>>>>> 63abda935 (checker: judging that the peer is down is no longer based on DownSeconds (#4078))
}
return nil
}
Expand Down
11 changes: 1 addition & 10 deletions server/schedule/checker/rule_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,19 +249,10 @@ func (c *RuleChecker) isDownPeer(region *core.RegionInfo, peer *metapb.Peer) boo
log.Warn("lost the store, maybe you are recovering the PD cluster", zap.Uint64("store-id", storeID))
return false
}
<<<<<<< HEAD
if store.DownTime() < c.cluster.GetMaxStoreDownTime() {
continue
}
if stats.GetDownSeconds() < uint64(c.cluster.GetMaxStoreDownTime().Seconds()) {
continue
}
=======
// Only consider the state of the Store, not `stats.DownSeconds`.
if store.DownTime() < c.cluster.GetOpts().GetMaxStoreDownTime() {
if store.DownTime() < c.cluster.GetMaxStoreDownTime() {
continue
}
>>>>>>> 63abda935 (checker: judging that the peer is down is no longer based on DownSeconds (#4078))
return true
}
return false
Expand Down

0 comments on commit e35fe75

Please sign in to comment.