-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
tikv: recheck kv status before invalidate region on sending fail (#16933) #16956
Conversation
Signed-off-by: sre-bot <sre-bot@pingcap.com>
/run-all-tests |
store/tikv/region_cache.go
Outdated
@@ -1384,8 +1393,13 @@ func (s *Store) reResolve(c *RegionCache) { | |||
addr = store.GetAddress() | |||
if s.addr != addr { | |||
state := resolved | |||
<<<<<<< HEAD |
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.
Please address conflict @lysu
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.
done~
/run-all-tests |
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.
LGTM
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.
LGTM
/merge |
/run-all-tests |
@sre-bot merge failed. |
/run-integration-copr-test |
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
@sre-bot merge failed. |
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
cherry-pick #16933 to release-4.0
What problem does this PR solve?
Problem Summary:
the simple and cherry-pickable part of #15989
do addition kv status check before invalidate region to avoid false-invalidate region cache when tikv isn't down but sending request failure(like meet network timeout).
What is changed and how it works?
Proposal: xxx
What's Changed:
do addition kv status check before invalidate region
How it Works:
do addition kv status check before invalidate region
and add metric to new check operation.
if status API unavaliable tidb will works as code before this pr
Related changes
Check List
Tests
Side effects
Release note
recheck kv status before invalidating region on sending fail
This change is