pingcap / pingcap/tidb

add index task state show cancelled but actually succeed when inject ddl owner network partition with global sort

Open
#48,634 2 comments 0 reactions 0 assignees View on GitHub
affects-8.1 affects-8.5 component/ddl may-affects-5.3 may-affects-5.4 may-affects-6.1 may-affects-6.5 may-affects-7.1 may-affects-7.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)
tidb_enable_dist_task='on' and enable global sort
1、run workload
2、add index for one table
3、 inject ddl owner network partition

### 2. What did you expect to see? (Required)
add index task success

### 3. What did you see instead (Required)
add index task state show cancelled but actually succeed when inject ddl owner network partition

the status of ddl job is not synced or running (now: 2023-11-16 06:18:39, jobId: 600, job type: add index /* ingest cloud */, state: cancelled)
operatorLogs:
[2023-11-16 06:13:37] ###### start adding index
alter table sbtest1 add index index_test_1700086417962 (c)
[2023-11-16 06:13:37] ###### wait for ddl job finish
[2023-11-16 06:18:39] ###### wait for import job to finish failed
select job_id, job_type, state from information_schema.ddl_jobs where query = 'alter table sbtest1 add index index_test_1700086417962 (c)'
jobId: 600, job type: add index /* ingest cloud */, state: cancelled

### 4. What is your TiDB version? (Required)
git hash:151b5b1df9d595bf0b568ff82f2ea2e13ae3eddb

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.