region-size: Inherit relevant configs on region-size from the last config file. (#18505)#18545
Conversation
Signed-off-by: lucasliang <nkcs_lykx@hotmail.com>
Signed-off-by: lucasliang <nkcs_lykx@hotmail.com>
Signed-off-by: lucasliang <nkcs_lykx@hotmail.com>
[LGTM Timeline notifier]Timeline:
|
|
bugbot run |
There was a problem hiding this comment.
Bug: Incorrect Configuration Reference in `compatible_adjust`
The compatible_adjust function's deprecation detection and migration logic for raftstore.region-max-size and raftstore.region-split-size is flawed. When a last_config is provided, the function incorrectly uses last_config.raft_store as the reference for comparison instead of RaftstoreConfig::default(). This leads to incorrect deprecation warnings and migration behavior.
src/config/mod.rs#L4164-L4197
Lines 4164 to 4197 in ef6a180
BugBot free trial expires on July 22, 2025
You have used $0.00 of your $10.00 spend limit so far. Manage your spend limit in the Cursor dashboard.
Was this report helpful? Give feedback by reacting with 👍 or 👎
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hbisheng, LykxSassinator, zhangjinpeng87 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This is an automated cherry-pick of #18505
What is changed and how it works?
Issue Number: Close #18503
What's Changed:
This PR introduces an inheritance mechanism for region-size configurations to ensure smooth
upgrades from earlier versions to v8.5+. When upgrading, the system will automatically retain
the previous region-size settings unless they were manually modified in the current
tikv.tomlbefore startup.
Related changes
pingcap/docs/pingcap/docs-cn:Check List
Tests
Side effects
Release note