Skip to content

Commit

Permalink
Log request info for label warning (#744)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniël van Eeden <[email protected]>
Co-authored-by: disksing <[email protected]>
  • Loading branch information
dveeden and disksing authored Mar 27, 2023
1 parent f23d942 commit f7e35b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/locate/region_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,8 @@ 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")
logutil.BgLogger().Warn("unable to find stores with given labels",
zap.Any("labels", state.option.labels))
}
leader := selector.replicas[state.leaderIdx]
if leader.isEpochStale() || leader.isExhausted(1) {
Expand Down

0 comments on commit f7e35b2

Please sign in to comment.