Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removing spurious warning message in selector #1372

Merged

Conversation

mittalrishabh
Copy link

Issue #1371

This message is printed when a request is tried on all replicas and is failed. Few failures (< 10) per tidb node are expected and it spams the logging for large cluster.

@@ -914,7 +914,7 @@ func (state *accessFollower) next(bo *retry.Backoffer, selector *replicaSelector
leaderExhausted := state.IsLeaderExhausted(leader)
leaderTimeout := leader.deadlineErrUsingConfTimeout
if len(state.option.labels) > 0 && !state.option.leaderOnly {
logutil.BgLogger().Warn("unable to find a store with given labels",
logutil.BgLogger().Debug("unable to find a store with given labels",
Copy link
Contributor

@crazycs520 crazycs520 Jun 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, this log has been removed in the master branch since replica selector v2 was introduced by https://github.com/tikv/client-go/pull/1265/files#diff-0c36d07fbd1fc71c850ff57d323fe12bdf7f2c053ef71b7fec5bb44358f1070dL1003

@cfzjywxk cfzjywxk merged commit 01a4f59 into tikv:tidb-6.5-with-kv-timeout-feature Jun 24, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants