[cherry-pick] br: less split during restoring(tidb#27240)#1432
[cherry-pick] br: less split during restoring(tidb#27240)#1432ti-chi-bot merged 2 commits intopingcap:release-4.0from
Conversation
|
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. DetailsReviewer can indicate their review by submitting an approval review. |
|
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
|
/run-integration-test |
|
/run-check_release_note |
|
/rebuild |
|
/merge |
|
This pull request has been accepted and is ready to merge. DetailsCommit hash: f8cc37c |
cherry-picking tidb#27240
===
Port of #1377
What problem does this PR solve?
Partially fix #1374
What is changed and how it works?
Also,
downloadSSTwould find rewrite rules by file instead of region start key for now.Check List
Tests
The same case as Too many empty region after restoration of many small tables #1374, the region count reduced about 1/2.
Release note
BR would split less regions to reduce the number of empty region after restoration.