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

region error(mismatch peer error) should be processed and retry #874

Closed
AndreMouche opened this issue Jul 8, 2023 · 4 comments
Closed

Comments

@AndreMouche
Copy link
Member

Hi,
when tikv returns an region error with mismatch peer id, go-client should process the error and retry instead of returning error directly

[2023/07/07 22:20:34.597 +00:00] [Warn] [endpoint.rs:782] [error-response] [err="Region error (will back off and retry) message: \"\\\"[components/raftstore/src/store/util.rs:385]: mismatch peer id 2 != 1\\\"\""]

related code
https://github.com/tikv/client-go/blob/master/internal/locate/region_request.go#L1652-L1945

@AndreMouche
Copy link
Member Author

@cfzjywxk could you please assist in resolving this issue? I think I can help with the review

@AndreMouche
Copy link
Member Author

AndreMouche commented Jul 10, 2023

Look forward to the fix and backport to TiDB-6.5.x

@BornChanger
Copy link
Contributor

please manage to handle the requirement of #882

@cfzjywxk
Copy link
Contributor

Duplicate with pingcap/tidb#45297.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants