pingcap / pingcap/tidb

The index creation process is stuck

Open
#65,948 4 comments 0 reactions 1 assignee Claimed by @bb7133 View on GitHub
component/ddl contribution first-time-contributor may-affects-7.1 may-affects-7.5 may-affects-8.1 may-affects-8.5 severity/major 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)
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

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.