add handle operation toward rpc err in scan_inner#495
add handle operation toward rpc err in scan_inner#495BryceCao wants to merge 1 commit intotikv:masterfrom
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. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Welcome @BryceCao! |
988f660 to
cee5486
Compare
pingyu
left a comment
There was a problem hiding this comment.
Thanks for you contribution !
Please fix the DCO error.
src/request/plan.rs
Outdated
| } | ||
| } | ||
|
|
||
| pub(crate) async fn handle_rpc_error<PdC: PdClient>( |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
the method has been rename, but eliminating duplicated codes is hard to me, because invalidate_region_cache() and invalidate_store_cache() is used with so much if else branch.
2401711 to
d0a7eb9
Compare
fix: tikv#493 Signed-off-by: cao.leilc <cao.leilc@inspur.com>
d0a7eb9 to
99ab90c
Compare
fix #493