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

regions API unavailable when there are too many regions #55872

Closed
you06 opened this issue Sep 5, 2024 · 1 comment · Fixed by #56278
Closed

regions API unavailable when there are too many regions #55872

you06 opened this issue Sep 5, 2024 · 1 comment · Fixed by #56278
Assignees
Labels
affects-5.4 This bug affects 5.4.x versions. affects-6.1 affects-6.5 affects-7.1 affects-7.5 affects-8.1 component/pd report/customer Customers have encountered this bug. severity/major type/bug The issue is confirmed as a bug.

Comments

@you06
Copy link
Contributor

you06 commented Sep 5, 2024

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

Run the following bash script.

mysql -h 127.0.0.1 -P 4000 -u root -D test --comments -e "drop table if exists t"
mysql -h 127.0.0.1 -P 4000 -u root -D test --comments -e "create table t(id bigint primary key)"

for i in {1..100}
do
    mysql -h 127.0.0.1 -P 4000 -u root -D test --comments -e "SPLIT TABLE t BETWEEN ($(($i))000000) AND ($(( $i + 1 ))000000) REGIONS 1000" > /dev/null &
done

wait

curl http://127.0.0.1:10080/tables/test/t/regions

2. What did you expect to see? (Required)

The curl command print the regions of the table.

3. What did you see instead (Required)

The curl command returns error like:

rpc error: code = ResourceExhausted desc = grpc: received message larger than max (8888180 vs. 4194304)

4. What is your TiDB version? (Required)

Release Version: v8.4.0-alpha-94-g3578e29613
Edition: Community
Git Commit Hash: 3578e29613771c649e1f8fa4a3e27d3e3b83f0a0
Git Branch: HEAD
UTC Build Time: 2024-09-05 01:36:02
GoVersion: go1.21.10
Race Enabled: false
Check Table Before Drop: false
Store: tikv
@seiya-annie
Copy link

/report customer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-5.4 This bug affects 5.4.x versions. affects-6.1 affects-6.5 affects-7.1 affects-7.5 affects-8.1 component/pd report/customer Customers have encountered this bug. severity/major type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants