-
Notifications
You must be signed in to change notification settings - Fork 136
add handle operation toward rpc err in scan_inner #495
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
base: master
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Welcome @BryceCao! |
fix: tikv#493 Signed-off-by: Bryce Cao <[email protected]>
988f660
to
cee5486
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for you contribution !
Please fix the DCO error.
@@ -345,6 +345,18 @@ pub(crate) async fn handle_region_error<PdC: PdClient>( | |||
} | |||
} | |||
|
|||
pub(crate) async fn handle_rpc_error<PdC: PdClient>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be better to name as invalidate_cache
for wider usage.
It would be nice if you can use this method for handle_region_error
& handle_other_error
to eliminate duplicated codes. But it is still OK if you do not want to change them in this PR.
fix #493