mirror of https://github.com/tikv/client-go.git
parent
f4a640e8e0
commit
6ca8098ae0
|
|
@ -545,6 +545,9 @@ func (state *accessFollower) next(bo *retry.Backoffer, selector *replicaSelector
|
|||
}
|
||||
// If there is no candidate, fallback to the leader.
|
||||
if selector.targetIdx < 0 {
|
||||
if len(state.option.labels) > 0 {
|
||||
logutil.BgLogger().Warn("unable to find stores with given labels")
|
||||
}
|
||||
leader := selector.replicas[state.leaderIdx]
|
||||
if leader.isEpochStale() || leader.isExhausted(1) {
|
||||
metrics.TiKVReplicaSelectorFailureCounter.WithLabelValues("exhausted").Inc()
|
||||
|
|
|
|||
Loading…
Reference in New Issue