Skip to content

Commit

Permalink
checker: add disconnected check when fix orphan peers
Browse files Browse the repository at this point in the history
Signed-off-by: lhy1024 <admin@liudos.us>
  • Loading branch information
lhy1024 committed Oct 20, 2023
1 parent d9dbf77 commit 83ad962
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/schedule/checker/rule_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,12 @@ loopFits:
hasUnhealthyFit = true
break loopFits
}
// avoid to meet down store when fix orpahn peers,
// Isdisconnected is more strictly than IsUnhealthy.
if c.cluster.GetStore(p.GetStoreId()).IsDisconnected() {
hasUnhealthyFit = true
break loopFits
}
}
}

Expand Down

0 comments on commit 83ad962

Please sign in to comment.