Skip to content

add index task rollingback after inject ddl owner network partition #49556

@Lily2025

Description

@Lily2025

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

1、tidb_enable_dist_task='off'
2、add index
3、inject ddl owner network partition

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

add index can success

3. What did you see instead (Required)

add index task rollingback

the status of ddl job is not synced or running (now: 2023-12-13 11:43:05, jobId: 604, job type: add index /* txn-merge /, state: rollingback)
operatorLogs:
[2023-12-13 11:29:04] ###### start adding index
alter table sbtest1 add index index_test_1702438144925 (c)
[2023-12-13 11:29:04] ###### wait for ddl job finish
[2023-12-13 11:43:05] ###### wait for ddl job to finish failed
select job_id, job_type, state from information_schema.ddl_jobs where query = 'alter table sbtest1 add index index_test_1702438144925 (c)'
jobId: 604, job type: add index /
txn-merge */, state: rollingback

from tangenta
[global:2]execution result undetermined

4. What is your TiDB version? (Required)

v7.1.3
git hash:e091ee57040e27b70cac6a29b4e59f3b3162021e

Metadata

Metadata

Assignees

Labels

affects-7.5This bug affects the 7.5.x(LTS) versions.component/ddlThis issue is related to DDL of TiDB.severity/majortype/bugThe issue is confirmed as a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions