pingcap / tidb

TiDB - the open-source, cloud-native, distributed SQL database designed for modern applications.
https://pingcap.com
Apache License 2.0
37.23k stars 5.84k forks source link

The region_id output by the "show table xx regions" command may be incorrect. #42839

Open Jayjlchan opened 1 year ago

Jayjlchan commented 1 year ago

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

show table mysql.stats_top_n regions For example, the output region_id is 145772.

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

The result should be consistent with the region_id obtained from the SQL statement "select * from INFORMATION_SCHEMA.TIKV_REGION_STATUS where table_id=xx". For example, the output region_id is 14577279.

3. What did you see instead (Required)

the output region_id is 145772 , not 14577279.

4. What is your TiDB version? (Required)

4.0.14

jebter commented 2 months ago

4.0 has reached its End of Life (EOL), please try using the latest version.