pingcap / pingcap/tidb

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

Open
#42,839 1 comment 0 reactions 0 assignees View on GitHub
severity/moderate sig/sql-infra type/bug
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.