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

Backport the stale read optimizations to 6.5 #818

Merged
merged 2 commits into from
May 29, 2023

Commits on May 26, 2023

  1. add metrics for stale-read traffic (tikv#776)

    Signed-off-by: you06 <you1474600@gmail.com>
    you06 committed May 26, 2023
    Configuration menu
    Copy the full SHA
    ea86dbc View commit details
    Browse the repository at this point in the history
  2. Remove stale-read flag after resolving lock (tikv#792)

    * remove stale-read when key-is-locked
    
    Signed-off-by: you06 <you1474600@gmail.com>
    
    * disable follower read for batch get
    
    Signed-off-by: you06 <you1474600@gmail.com>
    
    * the stale-read flag may already set to false
    
    Signed-off-by: you06 <you1474600@gmail.com>
    
    * fix batchget
    
    Signed-off-by: you06 <you1474600@gmail.com>
    
    * Reset busy-threshold when stale read fallback to leader read
    
    Signed-off-by: you06 <you1474600@gmail.com>
    
    * address comment
    
    Signed-off-by: you06 <you1474600@gmail.com>
    
    * trigger CI
    
    Signed-off-by: you06 <you1474600@gmail.com>
    
    ---------
    
    Signed-off-by: you06 <you1474600@gmail.com>
    you06 committed May 26, 2023
    Configuration menu
    Copy the full SHA
    82554aa View commit details
    Browse the repository at this point in the history