The index creation process is stuck
- 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)
Normal index creation, when checking task progress with admin ddl jobs, gets stuck.
The admin cancel command cannot cancel the task. After restarting all tidb nodes, rollback occurs
and log inspection reveals errors.
drop the table that reported errors in the logs and recreate it, but encounter the following error:
[2026/01/29 17:17:42.549 +08:00] [WARN] [backfilling_dist_scheduler.go:77] [“index info not found”] [category=ddl-ingest] [“table ID”=6505] [“index ID”=6]
[2026/01/29 17:17:42.549 +08:00] [ERROR] [scheduler.go:500] [onError] [task-id=90005] [error=“index info not found: 6”] [stack=“[github.com/pingcap/tidb/pkg/disttask/framework/scheduler.(*BaseScheduler).onError](http://github.com/pingcap/tidb/pkg/disttask/framework/scheduler.(*BaseScheduler).onError)\n\t/workspace/source/tidb/pkg/disttask/framework/scheduler/scheduler.go:500\ngithub.com/pingcap/tidb/pkg/disttask/framework/scheduler.(*BaseScheduler).Rollback\n\t/workspace/source/tidb/pkg/disttask/framework/scheduler/scheduler.go:420\ngithub.com/pingcap/tidb/pkg/disttask/framework/scheduler.(*Manager).onRunnableTask\n\t/workspace/source/tidb/pkg/disttask/framework/scheduler/manager.go:400\ngithub.com/pingcap/tidb/pkg/disttask/framework/scheduler.(*Manager).onRunnableTasks.func1\n\t/workspace/source/tidb/pkg/disttask/framework/scheduler/manager.go:220\ngithub.com/pingcap/tidb/pkg/resourcemanager/pool/spool.(*Pool).run.func1\n\t/workspace/source/tidb/pkg/resourcemanager/pool/spool/spool.go:145”]
[2026/01/29 17:17:42.549 +08:00] [ERROR] [scheduler.go:506] [“scheduler met first error”] [task-id=90005] [error=“index info not found: 6”]
[2026/01/29 17:17:42.549 +08:00] [ERROR] [manager.go:403] [“failed to handle task”] [error=“index info not found: 6”]
[2026/01/29 17:17:42.550 +08:00] [ERROR] [scheduler.go:500] [onError] [task-id=180011] [error=“[schema:1146]Table ‘(Schema ID 449).(Table ID 2796)’ doesn’t exist”] [stack=“[github.com/pingcap/tidb/pkg/disttask/framework/scheduler.(*BaseScheduler).onError](http://github.com/pingcap/tidb/pkg/disttask/framework/scheduler.(*BaseScheduler).onError)\n\t/workspace/source/tidb/pkg/disttask/framework/scheduler/scheduler.go:500\ngithub.com/pingcap/tidb/pkg/disttask/framework/scheduler.(*BaseScheduler).Rollback\n\t/workspace/source/tidb/pkg/disttask/framework/scheduler/scheduler.go:420\ngithub.com/pingcap/tidb/pkg/disttask/framework/scheduler.(*Manager).onRunnableTask\n\t/workspace/source/tidb/pkg/disttask/framework/scheduler/manager.go:400\ngithub.com/pingcap/tidb/pkg/disttask/framework/scheduler.(*Manager).onRunnableTasks.func1\n\t/workspace/source/tidb/pkg/disttask/framework/scheduler/manager.go:220\ngithub.com/pingcap/tidb/pkg/resourcemanager/pool/spool.(*Pool).run.func1\n\t/workspace/source/tidb/pkg/resourcemanager/pool/spool/spool.go:145”]
[2026/01/29 17:17:42.550 +08:00] [ERROR] [scheduler.go:506] [“scheduler met first error”] [task-id=180011] [error=“[schema:1146]Table ‘(Schema ID 449).(Table ID 2796)’ doesn’t exist”]
[2026/01/29 17:17:42.550 +08:00] [ERROR] [manager.go:403] [“failed to handle task”] [error=“[schema:1146]Table ‘(Schema ID 449).(Table ID 2796)’ doesn’t exist”]
### 2. What did you expect to see? (Required)
create success
### 3. What did you see instead (Required)
The index creation process is stuck
### 4. What is your TiDB version? (Required)
7.5.4
Contributor guide
Assessment
This issue has not been assessed yet.