You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
gmhdbjd@gmhdbjd ~/code/tidb/bin master ./tidb-lightning -c cfg.toml
Verbose debug logs will be written to tidb-lightning.log
tidb lightning exit successfully
gmhdbjd@gmhdbjd ~/code/tidb/bin master mysql -uroot -h127.0.0.1 -P4000
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 17
Server version: 5.7.25-TiDB-v7.3.0-alpha TiDB Server (Apache License 2.0) Community Edition, MySQL 8.0 compatible
Copyright (c) 2000, 2023, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> set global tidb_enable_dist_task=1;
Query OK, 0 rows affected (0.03 sec)
mysql> use db;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> select * from tb;
+------+------+
| id | msg |
+------+------+
| 1 | 1 |
+------+------+
1 row in set (0.00 sec)
mysql> show config where type = 'tikv' && name = 'storage.engine';
+------+-----------------+----------------+---------+
| Type | Instance | Name | Value |
+------+-----------------+----------------+---------+
| tikv | 127.0.0.1:20160 | storage.engine | raft-kv |
+------+-----------------+----------------+---------+
1 row in set (0.01 sec)
mysql> create index idx on tb(id);
2. What did you expect to see? (Required)
create index succeed
3. What did you see instead (Required)
[2023/07/28 15:33:51.366 +08:00] [WARN] [dispatcher.go:379] ["gen dist-plan failed"] [error="PD returned no region, startKey: \"74800000000000006C5F728000000000000001\", endKey: \"74800000000000006C5F728000000000000001\", limit: 128"]
4. What is your TiDB version? (Required)
master
The text was updated successfully, but these errors were encountered:
The pd client api will get regions by range [startKey, endKey), not [startKey, endKey],
if the range of the region which has the record start with the same value with startKey,
then it will return no region.
https://github.com/tikv/pd/blob/fe52361cf48a7f5ed8c69bcd02db77e25162f207/pkg/core/region.go#L1506C3-L1506C3
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
create index succeed
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
master
The text was updated successfully, but these errors were encountered: