forked from pingcap/tidb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tikvclient: refine region-cache (pingcap#10256)
1. mark store after send * mark store be failed when sending data failure, it let tidb blackout this store in following in a period(continue fail count + last fail timestamp). * mark store as success when sending data success. 2. invalidate region cache * cache item never be deleted and only invalidate it to trigger pd re-fetch * make cache item validate again to keep use old data if fetch failure caused by pd down.
- Loading branch information
1 parent
6c6b295
commit 5c78779
Showing
9 changed files
with
818 additions
and
293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.