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

query TIKV_REGION_STATUS return some unexpected result #50809

Open
crazycs520 opened this issue Jan 30, 2024 · 0 comments · May be fixed by #50840
Open

query TIKV_REGION_STATUS return some unexpected result #50809

crazycs520 opened this issue Jan 30, 2024 · 0 comments · May be fixed by #50840
Assignees
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. severity/minor sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@crazycs520
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

related issue: #50808

show table information_schema.tables regions;
+-----------+--------------------+----------+-----------+-----------------+-------+------------+---------------+------------+----------------------+------------------+------------------------+------------------+
| REGION_ID | START_KEY          | END_KEY  | LEADER_ID | LEADER_STORE_ID | PEERS | SCATTERING | WRITTEN_BYTES | READ_BYTES | APPROXIMATE_SIZE(MB) | APPROXIMATE_KEYS | SCHEDULING_CONSTRAINTS | SCHEDULING_STATE |
+-----------+--------------------+----------+-----------+-----------------+-------+------------+---------------+------------+----------------------+------------------+------------------------+------------------+
| 52        | t_281474976710654_ | 78000000 | 53        | 1               | 53    | 0          | 0             | 1872000    | 1                    | 477              |                        |                  |
+-----------+--------------------+----------+-----------+-----------------+-------+------------+---------------+------------+----------------------+------------------+------------------------+------------------+
select DB_NAME, TABLE_NAME from `TIKV_REGION_STATUS` where `REGION_ID` = 52 group by DB_NAME, TABLE_NAME;

+--------------------+---------------------------------------------------+
| DB_NAME            | TABLE_NAME                                        |
+--------------------+---------------------------------------------------+
| PERFORMANCE_SCHEMA | session_account_connect_attrs                     |
| METRICS_SCHEMA     | tidb_qps_ideal                                    |
| INFORMATION_SCHEMA | METRICS_SUMMARY_BY_LABEL                          |
...
...
...
| METRICS_SCHEMA     | node_memory_usage                                 |
+--------------------+---------------------------------------------------+
761 rows in set

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

The final query result doesn't contain a system memory table.

3. What did you see instead (Required)

The final query result contain all system memory table, but memory table doesn't have any data in any tikv regions.

4. What is your TiDB version? (Required)

+-----------------------------------------------------------+
| tidb_version()                                            |
+-----------------------------------------------------------+
| Release Version: v8.0.0-alpha-143-g7087f70                |
| Edition: Community                                        |
| Git Commit Hash: 7087f702e18f811c98d5a276eace7bb69292c6aa |
| Git Branch: HEAD                                          |
| UTC Build Time: 2024-01-30 03:53:25                       |
| GoVersion: go1.21.4                                       |
| Race Enabled: false                                       |
| Check Table Before Drop: false                            |
| Store: tikv                                               |
+-----------------------------------------------------------+
@crazycs520 crazycs520 added the type/bug The issue is confirmed as a bug. label Jan 30, 2024
@crazycs520 crazycs520 added severity/minor help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. labels Jan 30, 2024
@ywqzzy ywqzzy self-assigned this Jan 31, 2024
@jebter jebter added the sig/sql-infra SIG: SQL Infra label Jan 31, 2024
@ywqzzy ywqzzy linked a pull request Jan 31, 2024 that will close this issue
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. severity/minor sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants