-
Notifications
You must be signed in to change notification settings - Fork 753
resourcemanager: add settings-only apply path #10234
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
base: master
Are you sure you want to change the base?
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 |
📝 WalkthroughWalkthroughThe changes introduce a new Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 🧹 Recent nitpick comments
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. 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 |
What problem does this PR solve?
Issue Number: ref #9737
PatchSettingscurrently couples metadata settings update and token delta patch together.For the upcoming PD-side metadata write path, we need a settings-only apply path to avoid
changing runtime tokens when only metadata is updated.
What is changed and how does it work?
ResourceGroup.PatchSettingsto shared internal logic.ResourceGroup.ApplySettings, which applies settings without patching token delta.NewGroupTokenBucketand guarded settings copy inpatch.TestApplySettingsWithoutTokenPatchto assert fill/burst update but token unchanged.Check List
Tests
Code changes
Side effects
Related changes
pingcap/docs/pingcap/docs-cn: N/Apingcap/tiup: N/ARelease note
Summary by CodeRabbit
Release Notes
New Features
Refactor