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 job rollback failed after inject ddl owner network partition #47476

Closed
Lily2025 opened this issue Oct 9, 2023 · 5 comments
Closed
Assignees
Labels
affects-7.5 This bug affects the 7.5.x(LTS) versions. component/ddl This issue is related to DDL of TiDB. 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 severity/major type/bug The issue is confirmed as a bug.

Comments

@Lily2025
Copy link

Lily2025 commented Oct 9, 2023

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

tidb_enable_dist_task='on'
1、run sysbench
2、add index
3、inject ddl owner network partition
workloads:
- type: sysbench
storage: s3://benchmark/sysbench_64_7000w
db: sysbench_64_7000w
tableNum: 64
tableSize: 70000000
threads: 64
subType: oltp_read_write
ignoreErrors: "all"
cases:
- name: "ha_tidb(ddl-owner)_to_all_network_partition"
warmUpTime: 1m
faultType: network_partition
selector: "tidb(ddl-owner)_to_all"
period: "@every 5m"
faultDuration: 3m
faultTotalRunTime: 30m
ddl:
addIndex:
- db: "sysbench_64_7000w"
table: "sbtest1"
timeout: 60m
times: 5
index_col_name: "c"
job_type: "ingest"

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

add index can success

3. What did you see instead (Required)

add index job rollback failed after inject ddl owner network partition
[2023/10/05 15:34:44.677 +08:00] [INFO] [db.go:103] ["select job_id, job_type, state from information_schema.ddl_jobs where query = 'alter table sbtest1 add index index_test_1696491014339 (c)'"]
[2023/10/05 15:34:44.727 +08:00] [INFO] [add_index.go:312] ["jobId: 467, job type: add index /* ingest */, state: rollingback"]

4. What is your TiDB version? (Required)

./tidb-server -V
Release Version: v7.5.0-alpha
Edition: Community
Git Commit Hash: a3bafcd
Git Branch: heads/refs/tags/v7.5.0-alpha
UTC Build Time: 2023-10-04 11:43:31
GoVersion: go1.21.1
Race Enabled: false
Check Table Before Drop: false
Store: unistore

@Lily2025 Lily2025 added the type/bug The issue is confirmed as a bug. label Oct 9, 2023
@Lily2025
Copy link
Author

Lily2025 commented Oct 9, 2023

/component ddl
/severity major

@ti-chi-bot ti-chi-bot bot added component/ddl This issue is related to DDL of TiDB. severity/major 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 Oct 9, 2023
@Lily2025
Copy link
Author

Lily2025 commented Oct 9, 2023

/assign ywqzzy

@ti-chi-bot ti-chi-bot added the affects-7.5 This bug affects the 7.5.x(LTS) versions. label Oct 23, 2023
@ywqzzy
Copy link
Contributor

ywqzzy commented Nov 13, 2023

same with #48303

@ywqzzy
Copy link
Contributor

ywqzzy commented Nov 13, 2023

/close

Copy link

ti-chi-bot bot commented Nov 13, 2023

@ywqzzy: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@ti-chi-bot ti-chi-bot bot closed this as completed Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-7.5 This bug affects the 7.5.x(LTS) versions. component/ddl This issue is related to DDL of TiDB. 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 severity/major type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

3 participants