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

9005 Error msg is misleading when tidb is disconnect to one tikv #1518

Open
mayjiang0203 opened this issue Dec 13, 2024 · 0 comments
Open

9005 Error msg is misleading when tidb is disconnect to one tikv #1518

mayjiang0203 opened this issue Dec 13, 2024 · 0 comments

Comments

@mayjiang0203
Copy link

When TiDB tries to access the leader of one region, it finds that the tikv cannot be connected. Therefore, it tries to access the tikv nodes where the follower is located. The follower keeps reporting "not leader" and returns not leader error to tidb.
While in tidb log, it reports : error:epoch_not_match:<> , which is misleading.

{"level":"WARN","time":"2024/12/11 17:05:43.014 +00:00","caller":"backoff.go:158","message":"regionMiss backoffer.maxSleep 40000ms is exceeded, errors:\nregion_id:666744652, region_ver:7664971, store_type:tikv, peer_addr:xx.xx.xx.xx:20160, error:epoch_not_match:<>  at 2024-12-11T17:05:41.503977479Z\nregion_id:666744652, region_ver:7664971, store_type:tikv, peer_addr:xx.xx.xx.xx:20160, error:epoch_not_match:<>  at 2024-12-11T17:05:42.007356859Z\nregion_id:666744652, region_ver:7664971, store_type:tikv, peer_addr:xxx.xx.xx.xx:20160, error:epoch_not_match:<>  at 2024-12-11T17:05:42.51108375Z\nlongest sleep type: regionMiss, time: 40010ms"}
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

No branches or pull requests

1 participant