mirror of https://github.com/tikv/client-go.git
Log request info for label warning (#744)
Signed-off-by: Daniël van Eeden <git@myname.nl> Co-authored-by: disksing <i@disksing.com>
This commit is contained in:
parent
f23d942527
commit
f7e35b25be
|
|
@ -583,7 +583,8 @@ func (state *accessFollower) next(bo *retry.Backoffer, selector *replicaSelector
|
||||||
// If there is no candidate, fallback to the leader.
|
// If there is no candidate, fallback to the leader.
|
||||||
if selector.targetIdx < 0 {
|
if selector.targetIdx < 0 {
|
||||||
if len(state.option.labels) > 0 {
|
if len(state.option.labels) > 0 {
|
||||||
logutil.BgLogger().Warn("unable to find stores with given labels")
|
logutil.BgLogger().Warn("unable to find stores with given labels",
|
||||||
|
zap.Any("labels", state.option.labels))
|
||||||
}
|
}
|
||||||
leader := selector.replicas[state.leaderIdx]
|
leader := selector.replicas[state.leaderIdx]
|
||||||
if leader.isEpochStale() || leader.isExhausted(1) {
|
if leader.isEpochStale() || leader.isExhausted(1) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue