Skip to content

Caught panic when canceling DDL jobs #54687

@lance6716

Description

@lance6716

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

check the error message of

// test PD connection issue causes failure after tidb_ddl_error_count_limit
testfailpoint.Enable(t, "github.com/pingcap/tidb/pkg/ddl/mockClearTablePlacementAndBundlesErr", `return()`)
// TODO(lance6716): fix it later
//tk.MustGetErrMsg("flashback database test_flashback", "[ddl:-1]DDL job rollback, error msg: mock error for clearTablePlacementAndBundles")
tk.MustExecToErr("flashback database test_flashback")

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

no panic message

3. What did you see instead (Required)

[ddl:-1]panic in handling DDL logic and error count beyond the limitation 2, cancelled

4. What is your TiDB version? (Required)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions