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

Add index panic in a cluster with multiple TiDB instances #48347

Closed
tangenta opened this issue Nov 7, 2023 · 0 comments · Fixed by #48348
Closed

Add index panic in a cluster with multiple TiDB instances #48347

tangenta opened this issue Nov 7, 2023 · 0 comments · Fixed by #48348
Assignees
Labels
affects-7.5 component/ddl This issue is related to DDL of TiDB. feature/developing the related feature is in development severity/critical type/bug The issue is confirmed as a bug.

Comments

@tangenta
Copy link
Contributor

tangenta commented Nov 7, 2023

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

  1. Prepare a cluster with multiple TiDB instances.
  2. Prepare a small data set.
  3. Add index for one of the table.

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

No error.

3. What did you see instead (Required)

[2023/11/07 12:14:04.903 +08:00] [ERROR] [spool.go:139] ["recover panic"] [recover="runtime error: index out of range [0] with length 0"] [s
run.func1.1
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/pkg/resourcemanager/pool/spool/spoolgo:139
runtime.gopanic
/usr/local/go/src/runtime/panic.go:914
runtime.goPanicIndex
/usr/local/go/src/runtime/panic.go:114
github.com/pingcap/tidb/pkg/ddl.generateNonPartitionPlanh
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/pkg/ddl/backfilling_dispatcher.go:3222
github.com/pingcap/tidb/pkg/ddl.(*BackfillingDispatcherExt).OnNextSubtasksBatch
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/pkg/ddl/backfilling_dispatcher.go:1633
github.com/pingcap/tidb/pkg/disttask/framework/dispatcher.(*BaseDispatcher).onNextStage
/home/jenkins/agent/workspace/build-common/go/src/github.comm/pingcap/tidb/pkg/disttask/framework/dispatcher/dispatcher.0:54
github.com/pingcap/tidb/pkg/disttask/framework/dispatcher.(*BaseDispatcher).onPending
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/pkg/disttask/framework/dispatcher/dspatcher.go:319
github.com/pingcap/tidb/pkg/disttask/framework/dispatcher.(BaseDispatcher).scheduleTask
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/pkg/disttask/framework/dispatcher/dispatcher.go:212
github.com/pingcap/tidb/pkg/disttask/framework/dispatcher. (*BaseDispatcher).ExecuteTask
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/pkg/disttask/framework/dispatcher/dspatcher.go:132
github.com/pingcap/tidb/pkg/disttask/framework/dispatcher.(*Manag(er).dispatchTaskLoop.(*Manager).startDispatcher.func
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/pkg/disttask/framework/dispatcher/dispatcher_manager.go:285
github.com/pingcap/tidb/pkg/resourcemanager/pool/spool.(*Pool).run.funcl
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/pkg/resourcemanager/pool/spool/spoolgo:144"]

4. What is your TiDB version? (Required)

662528d

@tangenta tangenta added type/bug The issue is confirmed as a bug. severity/critical feature/developing the related feature is in development affects-7.5 labels Nov 7, 2023
@ti-chi-bot ti-chi-bot bot added may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.1 may-affects-6.5 may-affects-7.1 labels Nov 7, 2023
@tangenta tangenta removed may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.1 may-affects-6.5 may-affects-7.1 labels Nov 7, 2023
@tangenta tangenta self-assigned this Nov 7, 2023
@jebter jebter added the component/ddl This issue is related to DDL of TiDB. label Nov 7, 2023
ti-chi-bot bot pushed a commit that referenced this issue Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-7.5 component/ddl This issue is related to DDL of TiDB. feature/developing the related feature is in development severity/critical type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants