tikv / pd

Placement driver for TiKV
Apache License 2.0
1.03k stars 714 forks source link

config: fix the panic caused by zero RegionSplitSizeMB (#8324) #8326

Closed ti-chi-bot closed 5 days ago

ti-chi-bot commented 5 days ago

This is an automated cherry-pick of #8324

What problem does this PR solve?

Issue Number: close #8323.

What is changed and how does it work?

Bypass the case that `RegionSplitSizeMB` might be zero in `(*StoreConfig) CheckRegionSize`.

Check List

Tests

Release note

None.
ti-chi-bot[bot] commented 5 days ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JmPotato, niubell

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/tikv/pd/blob/release-7.5/OWNERS)~~ [JmPotato] - ~~[pkg/schedule/config/OWNERS](https://github.com/tikv/pd/blob/release-7.5/pkg/schedule/config/OWNERS)~~ [niubell] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment