server: keep unsynced region stats leader-only - #11065
Conversation
Signed-off-by: okjiang <819421878@qq.com>
|
[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 |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughRegion ranking and histogram APIs are reassigned from region read routing to cluster routing. Follower API coverage now verifies leader-only region endpoints return cluster-not-bootstrapped errors without forwarding. ChangesRegion API routing
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@okJiang: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #11065 +/- ##
==========================================
+ Coverage 79.23% 79.36% +0.12%
==========================================
Files 540 541 +1
Lines 76010 76354 +344
==========================================
+ Hits 60226 60597 +371
+ Misses 11533 11497 -36
- Partials 4251 4260 +9
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
What problem does this PR solve?
Issue Number: ref #10719
Follower handling allowed several Region statistics APIs to execute against the follower-local Region cache.
RegionSyncer does not synchronize query statistics, approximate size and key counts, or CPU usage. A follower could therefore return stale, missing, or zero statistics for these APIs.
What is changed and how does it work?
Check List
Tests
Manual test:
Code changes
Release note
Summary by CodeRabbit