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

region is not balanced during br restore #7148

Closed
Lily2025 opened this issue Sep 25, 2023 · 6 comments · Fixed by #7149
Closed

region is not balanced during br restore #7148

Lily2025 opened this issue Sep 25, 2023 · 6 comments · Fixed by #7149
Assignees
Labels
affects-6.5 severity/major type/bug The issue is confirmed as a bug.

Comments

@Lily2025
Copy link

Bug Report

What did you do?

1、command="export AWS_ACCESS_KEY_ID=minioadmin;export AWS_SECRET_ACCESS_KEY=minioadmin;/br restore db --send-credentials-to-tikv=true --db tpcc20000 --pd http://tc-pd.endless-ha-test-with-some-feature-tps-2760236-1-101:2379 --storage s3://benchmark/tpcc20000 --s3.endpoint http://minio.pingcap.net:9000 --check-requirements=false

What did you expect to see?

region is balanced during br restore

What did you see instead?

region is not balanced during br restore
697e5e61-9453-4c4b-93b1-176e7eec52e5

What version of PD are you using (pd-server -V)?

./pd-server -V
Release Version: v7.4.0-alpha
Edition: Community
Git Commit Hash: a21fd58
Git Branch: heads/refs/tags/v7.4.0-alpha
UTC Build Time: 2023-09-22 11:36:18
2023-09-23T01:25:02.465+0800

@Lily2025 Lily2025 added the type/bug The issue is confirmed as a bug. label Sep 25, 2023
@Lily2025
Copy link
Author

/severity major

@Lily2025
Copy link
Author

/assign rleungx

@CabinfeverB
Copy link
Member

affects 6.5.5

ti-chi-bot bot pushed a commit that referenced this issue Sep 25, 2023
)

close #7148

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
ti-chi-bot pushed a commit to ti-chi-bot/pd that referenced this issue Sep 25, 2023
close tikv#7148

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
ti-chi-bot bot pushed a commit that referenced this issue Sep 26, 2023
#7150)

ref #7148

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
@CabinfeverB
Copy link
Member

The BR suspends the merge scheduling operation by setting max-merge-region-size to 0.
Due to PR #7009, the size of the region where the spilt occurs is 0.
So the BR failed to suspend the merge scheduling operation. After the split interval, regions are merged, which weakens scatter effect and results in unbalanced TiKV data (region score).

@CabinfeverB
Copy link
Member

Workaround
Pause the schedule manually with the limit parameter. In pd-ctl:

config set schedule.merge-schedule-limit 0

@CabinfeverB
Copy link
Member

There may be a bug about size check after split, see tikv/tikv#15696

ti-chi-bot bot pushed a commit to pingcap/tidb that referenced this issue Nov 2, 2023
ti-chi-bot bot pushed a commit to pingcap/tidb that referenced this issue Nov 22, 2023
ti-chi-bot bot pushed a commit to pingcap/tidb that referenced this issue Feb 21, 2024
ti-chi-bot pushed a commit to ti-chi-bot/pd that referenced this issue Feb 21, 2024
close tikv#7148

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
ti-chi-bot bot pushed a commit to pingcap/tidb that referenced this issue Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-6.5 severity/major type/bug The issue is confirmed as a bug.
Projects
Development

Successfully merging a pull request may close this issue.

4 participants